AlegroCart open source E-commerce
Web hosting by Host1Plus

Common Web Server Problems

knowledge base and frequently asked questions

Common Web Server Problems

Postby Brent » Thu Dec 24, 2009 11:02 am

Underscore - If you have a problem with PHP files not loading that have an underscore in the name such as user_group, it is caused by a security setting on the server to disallow the underscore in file names. Get them to reconfigure this to correct.

Session Data - You may find Report on Line does not return all the data you expect. This may be caused by Suhosin security mod for PHP. You will have to get the host to disable this to correct or install a standard PHPini file.

PHP5.3- In version 1.0, if you are running with PHP5.3, you will get this error:
Deprecated: Assigning the return value of new by reference is deprecated.
This has been corrected in version 1.1. The reference operator needs to be removed when creating a new class.

DATE Error
If you get an error:
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.
The date.timezone in php.ini is either disabled or set wrong.
If you have access to php.ini , set to a valid time zone. http://www.php.net/manual/en/timezones.php
example : date.timezone = "Europe/London"
If you do not have access to php.ini, you can included this in common.php right under //REPORT ALL ERRORS.
date_default_timezone_set('Europe/London'); (if only on your testing server, you can just us 'UTC')

MEMORY SIZE ERROR.
If you receive an error: Fatal error: Allowed memory size etc.
Your web host probably has the maximum memory limit in php.ini set too low.
Add this line in common.php just below //REPORT ALL ERRORS.
echo ini_get('memory_limit');
This will tell you what they have the memory limit set to.
Change this line to:
ini_set('memory_limit', '64M');
This should correct your problem.
User avatar
Brent
Site Admin
 
Posts: 4371
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Return to FAQ / Layouts / Knowledge Base

Who is online

Users browsing this forum: No registered users and 1 guest