Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CPG] Fatal error: Out of memory
zi3mn1ak
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 13.02.2008

Ostrzeżenie: (0%)
-----


Witam, dziś wróciłem do domu chce wejść na moją galerie ( Coppermine Photo Gallery ), i wyskakuje mi ten o to błąd

Fatal error: Out of memory (allocated 15204352) (tried to allocate 282100 bytes) in /home/icet/public_html/forum/include/functions.inc.php on line 2040


Mógłby mi ktoś pomóc? Jestem zielony w php (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) nie wiem o co może chodzić... Wszystkim użytkownikom galerii wyświetla się to samo. Z góry dziękuje za jakąkolwiek pomoc (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
zi3mn1ak
post
Post #2





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 13.02.2008

Ostrzeżenie: (0%)
-----


ok, mam to



  1. <?php
  2. if (is_null($filepathname)) {
  3. $filepathname = $url_prefix[$pic_row['url_prefix']]. path2url($pic_row['filepath']. $pic_prefix[$mode]. $pic_row['filename']);
  4. }
  5.  
  6. // Added hack: "&& !isset($pic_row['mode'])" thumb_data filter isn't executed for the fullsize image
  7. if ($mode == 'thumb' && !isset($pic_row['mode'])) {
  8. $pic_row['url'] = $filepathname;
  9. $pic_row['mode'] = $mode;
  10. $pic_row = CPGPluginAPI::filter('thumb_data',$pic_row);
  11. } elseif ($mode != 'thumb') {
  12. $pic_row['url'] = $filepathname;
  13. $pic_row['mode'] = $mode;
  14. } else {
  15. $pic_row['url'] = $filepathname;
  16. }
  17.  
  18. return $pic_row['url'];
  19. }
  20.  
  21.  
  22. /**
  23.  * cpg_get_default_lang_var()
  24.  *
  25.  * Return a variable from the default language file
  26.  *
  27.  * @param $language_var_name
  28.  * @param unknown $overide_language
  29.  * @return
  30.  **/
  31. function& cpg_get_default_lang_var($language_var_name,$overide_language = null) {
  32. global $CONFIG;
  33. if (is_null($overide_language)) {
  34. if (isset($CONFIG['default_lang'])) {
  35. $language = $CONFIG['default_lang'];
  36. } else {
  37.  global $$language_var_name;
  38.  return $$language_var_name;
  39. }
  40. } else {
  41.  $language = $overide_language;
  42. }
  43. include('lang/'.$language.'.php'); ----------------------------------------- line 2040 !! To ta linijka!
  44. return $$language_var_name;
  45. }
  46.  
  47. // Returns a variable from the current language file
  48. // If variable doesn't exists gets value from english_us lang file
  49.  
  50. /**
  51.  * cpg_lang_var()
  52.  *
  53.  * @param $varname
  54.  * @param unknown $index
  55.  * @return
  56.  **/
  57.  
  58. function& cpg_lang_var($varname,$index=null) {
  59. global $$varname;
  60.  
  61. $lang_var =& $$varname;
  62.  
  63. if (isset($lang_var)) {
  64. if (!is_null($index) && !isset($lang_var[$index])) {
  65. include('lang/english.php');
  66. return $lang_var[$index];
  67. } elseif (is_null($index)) {
  68. return $lang_var;
  69. } else {
  70.  return $lang_var[$index];
  71. }
  72. } else {
  73.  include('lang/english.php');
  74.  return $lang_var;
  75. }
  76. }
  77.  
  78.  
  79. /**
  80.  * cpg_debug_output()
  81.  *
  82.  * defined new debug_output function here in functions.inc.php instead of theme.
    php with different function names to avoid incompatibilities with users not updat
    ing their themes as required. Advanced info is only output if (GALLERY_ADMIN_MODE == TRUE)
  83.  *
  84.  **/
  85.  
  86. function cpg_debug_output()
  87. {
  88. global $USER, $USER_DATA, $META_ALBUM_SET, $ALBUM_SET, $CONFIG, $cpg_time_start, $query_stats, $queries, $lang_cpg_debug_output;
  89. $time_end = cpgGetMicroTime();
  90. $time = round($time_end - $cpg_time_start, 3);
  91.  
  92. $query_count = count($query_stats);
  93. $total_query_time = array_sum($query_stats);
  94.  
  95. $debug_underline = '
  96. ------------------
  97. ';
  98. $debug_separate = '
  99. ==========================
  100. ';
  101. echo '<form name="debug" action="'.$_SERVER['PHP_SELF'].'">';
  102. starttable('100%', $lang_cpg_debug_output['debug_info'],2);
  103. echo '<tr><td align="center" valign="middle" class="tableh2" width="100">';
  104. echo '<script language="javascript" type="text/javascript">
  105. <!--';
  106. ?>

i jak wie ktoś o co może chodzić? :/

następnym razem proszę stosować odpowiedni bbcode /kszychu/
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 2.10.2025 - 17:52