Loading


Advertisement:

Author Topic: blank page after publishing ad  (Read 701 times)

celika

  • Newbie
  • *
  • Posts: 8
blank page after publishing ad
« on: February 19, 2015, 11:18:56 pm »
Hi there

when i upload an image that is larger than 2000px (width or height)  and publish the ad, it comes up with a blank page and if i want to reload that page, it resubmits the ad with no image.

mobile phone cameras nowadays have higher resolution so i think this is a problem?

can anyone help please? im really stuck here.

Hussard (Madhouse)

  • Full Member
  • ***
  • Posts: 214
  • Outlaw web developer & padawan designer.
Re: blank page after publishing ad
« Reply #1 on: February 20, 2015, 12:23:07 am »
We had often the same problem.
It solved all our problem to use a jquery ajax uploader.

You should take a look at bender and the Ajax uploader included/integrated in it (I think it is fine uploader).

Nomak

  • Newbie
  • *
  • Posts: 13
Re: blank page after publishing ad
« Reply #2 on: September 03, 2015, 01:35:21 am »
Hello, I have the same problem. my premium template includes ajam for loading images. I get this error only occurs when images of higher resolutions. I need urgent help!

Aficionado

  • Hero Member
  • *****
  • Posts: 4025
  • Good things come to those who wait
Re: blank page after publishing ad
« Reply #3 on: September 03, 2015, 02:55:14 am »
Short memory problem. Enable OSclass Debug and see the errors.


Nomak

  • Newbie
  • *
  • Posts: 13
Re: blank page after publishing ad
« Reply #4 on: September 03, 2015, 03:04:04 am »
Short memory problem. Enable OSclass Debug and see the errors.

Hi, my log:
[02-Sep-2015 19:59:21 America/Argentina/Buenos_Aires] PHP Notice:  Undefined index: s_city in /home/nomakele/public_html/donclasificados/oc-includes/osclass/helpers/hDefines.php on line 494
[02-Sep-2015 19:59:21 America/Argentina/Buenos_Aires] PHP Notice:  Undefined index: s_city in /home/nomakele/public_html/donclasificados/oc-includes/osclass/helpers/hDefines.php on line 494
[02-Sep-2015 20:01:48 America/Argentina/Buenos_Aires] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 15360 bytes) in /home/nomakele/public_html/donclasificados/oc-includes/osclass/classes/ImageResizer.php on line 67

Aficionado

  • Hero Member
  • *****
  • Posts: 4025
  • Good things come to those who wait
Re: blank page after publishing ad
« Reply #5 on: September 03, 2015, 03:13:14 am »
Short memory problem. Enable OSclass Debug and see the errors.

Hi, my log:

[02-Sep-2015 20:01:48 America/Argentina/Buenos_Aires] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 15360 bytes) in /home/nomakele/public_html/donclasificados/oc-includes/osclass/classes/ImageResizer.php on line 67


As i said, Short (low) memory. 64 mb are not enough.

Please search here, we have covered this a million times.


Nomak

  • Newbie
  • *
  • Posts: 13
Re: blank page after publishing ad
« Reply #6 on: September 03, 2015, 03:30:44 am »
Short memory problem. Enable OSclass Debug and see the errors.

Hi, my log:

[02-Sep-2015 20:01:48 America/Argentina/Buenos_Aires] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 15360 bytes) in /home/nomakele/public_html/donclasificados/oc-includes/osclass/classes/ImageResizer.php on line 67


As i said, Short (low) memory. 64 mb are not enough.

Please search here, we have covered this a million times.

Thank you has served me your answer, I configured memory in the config.php file and fix  ;D

campusmart

  • Newbie
  • *
  • Posts: 21
Re: blank page after publishing ad
« Reply #7 on: March 05, 2017, 09:31:33 am »
Please how did you configure the memory at config.php Thanks what line should I modify

Aficionado

  • Hero Member
  • *****
  • Posts: 4025
  • Good things come to those who wait
Re: blank page after publishing ad
« Reply #8 on: March 05, 2017, 12:31:32 pm »
Please how did you configure the memory at config.php Thanks what line should I modify

It is not config.php but .htaccess that needs to be modified.

Code: [Select]
php_value memory_limit xxxM

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 1532
  • osclass.work
Re: blank page after publishing ad
« Reply #9 on: March 05, 2017, 12:56:05 pm »
That's assuming server runs PHP as apache's module (you might not even run on apache!), otherwise it will not work.

You'll have to use ini_set() function inside a .php file instead, for example, by placing ini_set('memory_limit', '256M'); in oc_load.php.

And all above will work only if overrides are allowed by PHP's main config (e.g. in main php.ini). On some servers it is disabled for security or because host does not allow changes.

Aficionado

  • Hero Member
  • *****
  • Posts: 4025
  • Good things come to those who wait
Re: blank page after publishing ad
« Reply #10 on: March 05, 2017, 01:41:49 pm »
I think Oslass uses as much physical php memory as it is allowed by the plan. And that is set by either php.in (editing of this is mostly NOT available in shared plans) or most commonly via .htaccess.

Usually there are TWO setting in hosting plans. DEFAULT php memory and MAX php memory. You overide the default using .htaccess.