Osclass forums
Support forums => Themes => Topic started by: ab24 on June 15, 2015, 04:33:01 am
-
Hello,
I have a classifieds site using Osclass with the Osclass wizards theme installed, hosted through FatCow. Everything seems smooth so far and I am loving this theme but there is just one problem I have run into and cannot find a solution to this issue. I can post listings on the site without any images fine, but whenever I try to attach an image, no matter how small the image size is (I tried a 800 byte image) or no matter what the image file type is, I am redirected to an error page with only the following text displayed:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Although this error page is shown, I notice that the listing is posted to the site with all info included except for the image. Also I noticed through ftp that in the "/oc-content/uploads/temp/" folder the images are located there after attempting to post the listing.
Any help would be greatly appreciated, Thank you!
-
hi try this
1, go to the main Osclass installation folder.
2, Open config.php
3, and simply paste this code
define('OSC_MEMORY_LIMIT', '128M') ;
in between any line as long it is not at the top and bottom end.
credit goes to Eric aka SmaRTeY
Regards Jay280
-
Thank you so much, this worked!!! :D
-
- renoved by author since this is fixed ---
-
-removed-
-
This fix is kinda strange, since here
https://doc.osclass.org/Increasing_memory_allocated_to_PHP
it says that Osclass uses automatically all available memory by php. Isn't that the case ?
Actually that doc says that 32 mb are used by Osclass and then says the opposite. And i believe that Osclass does use all memory available by php since that is the way it works in my setup.
:o
-
hi Aficionado, as you said the changes should be done in php.ini by hosting company, but however this method have worked without any changes in the php.ini so there might be some faulty code that sometimes doesn't let it work or just bad luck :D
-
I think what happens here is that Osclass uses the "hosting plan" default, that can be 32 mb or 64 mb. The
define('OSC_MEMORY_LIMIT', '128M') ;
is actually the same as .htaccess
php_value memory_limit 128M
In that way you can reach the MAX php physical memory allowed by the Hosting company (usually 128 mb or even 256 mb).
Here is a small plugin for PHP INFO that will help anyone to see what is his configuration about anything related to his hosting plan.
-
I think what happens here is that Osclass uses the "hosting plan" default, that can be 32 mb or 64 mb. The
define('OSC_MEMORY_LIMIT', '128M') ;
is actually the same as .htaccess
php_value memory_limit 128M
In that way you can reach the MAX php physical memory allowed by the Hosting company (usually 128 mb or even 256 mb).
Here is a small plugin for PHP INFO that will help anyone to see what is his configuration about anything related to his hosting plan.
thanks for detailed information Aficionado :)
Regards Jay280
-
And theme related issues can be reported here http://forums.osclass.org/themes/osclasswizards-free-responsive-bootstrap-theme/ (http://forums.osclass.org/themes/osclasswizards-free-responsive-bootstrap-theme/)