Advertisement:

Author Topic: [SOLVED] Osclass Wizards Cannot Post Listing With Images  (Read 1570 times)

ab24

  • Newbie
  • *
  • Posts: 6
[SOLVED] Osclass Wizards Cannot Post Listing With Images
« 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!
« Last Edit: June 16, 2015, 03:54:43 am by ab24 »

Jay280

  • Jr. Member
  • **
  • Posts: 53
Re: Osclass Wizards Cannot Post Listing With Images
« Reply #1 on: June 16, 2015, 12:56:21 am »
hi try this
 
1, go to the main Osclass installation folder.
2, Open config.php
3, and simply paste this code
Code: [Select]
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

ab24

  • Newbie
  • *
  • Posts: 6
Re: Osclass Wizards Cannot Post Listing With Images
« Reply #2 on: June 16, 2015, 03:54:05 am »
Thank you so much, this worked!!! :D

Aficionado

  • Guest
Re: Osclass Wizards Cannot Post Listing With Images
« Reply #3 on: June 16, 2015, 03:55:17 am »
- renoved by author since this is fixed ---

ab24

  • Newbie
  • *
  • Posts: 6
Re: [SOLVED] Osclass Wizards Cannot Post Listing With Images
« Reply #4 on: June 16, 2015, 03:56:22 am »
-removed-

Aficionado

  • Guest
Re: [SOLVED] Osclass Wizards Cannot Post Listing With Images
« Reply #5 on: June 16, 2015, 04:02:48 am »
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

Jay280

  • Jr. Member
  • **
  • Posts: 53
Re: [SOLVED] Osclass Wizards Cannot Post Listing With Images
« Reply #6 on: June 16, 2015, 10:48:37 am »
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

Aficionado

  • Guest
Re: [SOLVED] Osclass Wizards Cannot Post Listing With Images
« Reply #7 on: June 16, 2015, 03:05:44 pm »
I think what happens here is that Osclass uses the "hosting plan" default, that can be 32 mb or 64 mb. The

Code: [Select]
define('OSC_MEMORY_LIMIT', '128M') ;

is actually the same as .htaccess

Code: [Select]
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.


Jay280

  • Jr. Member
  • **
  • Posts: 53
Re: [SOLVED] Osclass Wizards Cannot Post Listing With Images
« Reply #8 on: June 16, 2015, 05:52:03 pm »
I think what happens here is that Osclass uses the "hosting plan" default, that can be 32 mb or 64 mb. The

Code: [Select]
define('OSC_MEMORY_LIMIT', '128M') ;

is actually the same as .htaccess

Code: [Select]
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

Osclass Wizards

  • Sr. Member
  • ****
  • Posts: 254
  • We love Osclass
Re: [SOLVED] Osclass Wizards Cannot Post Listing With Images
« Reply #9 on: June 20, 2015, 12:38:26 pm »