Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [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 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 smile.gif
Go to the top of the page
+Quote Post
em1X
post
Post #2





Grupa: Zarejestrowani
Postów: 984
Pomógł: 41
Dołączył: 16.03.2002
Skąd: Płock

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


Dużo Ci raczej nie pomożemy. Napisz na forum Coppermine.


--------------------
eh, co polska wódka to polska wódka
Go to the top of the page
+Quote Post
zakręcony
post
Post #3





Grupa: Zarejestrowani
Postów: 107
Pomógł: 10
Dołączył: 26.09.2007

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


znalezione w sieci:
Cytat
Błąd związany jest z dostępem do pamięci RAM. Występuje bardzo rzadko, ale czasem może się zdarzyć. W takiej sytuacji przeważnie wystarcza kilkukrotne odświeżenie strony, jednak czasem konieczne jest ponowne uruchomienie serwera


--------------------
Rachunkowość w biurze we Wrocławiu: biuro rachunkowe wrocław, miejca parkingowe przy Okęciu parking Okecie.
Go to the top of the page
+Quote Post
Kocurro
post
Post #4





Grupa: Zarejestrowani
Postów: 461
Pomógł: 32
Dołączył: 17.09.2003
Skąd: Łódź

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


Raczej ograniczenie ilości pamięci możliwej do zaalakowania do 16M czyli standardowa konfiguracja.

Postaraj się wgrywać mniejsze zdjęcia ...

pozdr.
Go to the top of the page
+Quote Post
zi3mn1ak
post
Post #5





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

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


to jak to wkońcu naprawić co mam zrobić? Jak zwiększyć te ustawienie 16MB na większe?

zresztą to by było bez sensu, poniewaz zdjęcia tam zajmują juz prawie 60 MB....

teraz wyskakuje całkiem inny tekst tzn. liczby

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

prosze co mam zrobic? sad.gif
Go to the top of the page
+Quote Post
zakręcony
post
Post #6





Grupa: Zarejestrowani
Postów: 107
Pomógł: 10
Dołączył: 26.09.2007

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


skontaktuj się z adminami hostingu


--------------------
Rachunkowość w biurze we Wrocławiu: biuro rachunkowe wrocław, miejca parkingowe przy Okęciu parking Okecie.
Go to the top of the page
+Quote Post
zi3mn1ak
post
Post #7





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

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


a więc tak, dostałem odpowiedź od nich:

Oznacza to ze skrypt php probuje uzyc wiecej pamieci niz jest to dozwolone

oraz ze nie ma takiej usługi jak zresetowanie serwera.


Teraz pytanie do was, jak zwiększyć tą dozwoloną ilość? Jak rozwiazać ten problem? :/
Go to the top of the page
+Quote Post
ucho
post
Post #8





Grupa: Zarejestrowani
Postów: 300
Pomógł: 32
Dołączył: 31.07.2006

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


Nie zmienisz, to ograniczenie w konfiguracji serwera. Zmień serwer smile.gif
Ewentualnie sprawdź czy masz dostęp do ImageMagick np. mogrify i poszukaj skryptu który korzysta z tego do robienia miniaturek zamiast funkcji GD.
Go to the top of the page
+Quote Post
zi3mn1ak
post
Post #9





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

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


Webd, odpisal mi że naprawić to moge poprawiając kod skryptu... Więc jednak to nie jest wina serwera, kto by poprawił mi ten kod? :/ prosze bardzo mi zależy! sad.gif
Go to the top of the page
+Quote Post
-=Peter=-
post
Post #10





Grupa: Zarejestrowani
Postów: 304
Pomógł: 51
Dołączył: 4.02.2005
Skąd: Kraków

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


to może byś pokazał gdzieś od 2000 do 2100 linijki kod pliku "forum/include/functions.inc.php", bo raczej nikt nie jest jasnowidzem...


--------------------
Go to the top of the page
+Quote Post
zi3mn1ak
post
Post #11





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

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


a jak mam sprawdzić gdzie się zaczyna 2000 linijka? Używam notatnika :/
Go to the top of the page
+Quote Post
LonelyKnight
post
Post #12





Grupa: Zarejestrowani
Postów: 240
Pomógł: 13
Dołączył: 1.06.2007
Skąd: Wrocław

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


1. Policz tongue.gif
2. Zainstaluj jakiś edytor, który numeruje linie - np. Notepad++


--------------------
Good programming is 99% sweat and 1% coffee.
Make it idiot proof and someone will make a better idiot...
Go to the top of the page
+Quote Post
zi3mn1ak
post
Post #13





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

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

 



RSS Aktualny czas: 21.08.2025 - 18:22