Fatal error: spl_autoload() [<a href=’function.spl-autoload’>function.spl-autoload</a>]: Class Zend_Log could not be loaded in /magento/app/code/core/Mage/Core/functions.php on line 247
Solution: this error comes most of the times due to lack of disk sapce or disk quota. so you need to update the disk quota for the user. Contact hosting provider for to increase the space
Receive “Fatal error: Allowed memory size of 33554432 bytes exhausted” when try to upload an image with medium file size. To solve this error, try to increase the memory allocated to PHP. You can set the limit to 32MB, 64MB, 128MB or 256MB. It depends on your host.
Solution 1: Edit PHP.ini
If you’re still allowed to edit your PHP.inifile, update your memory_limit in PHP.ini by modifying the below line
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)If the line is showing 64M in default, try 128M.
Solution 2: Edit .htaccess file
Add the script below to your .htaccess file.
php_value memory_limit 64M
Solution 3: Edit wp-config.php file
Add the script below to your wp-config.php file
Increasing memory allocated to PHP
Solution 4: Create a PHP.ini file to wp-admin folder
- Open Notepad.
- Insert the following code into Notepad.
memory_limit = 64M ;
- Save as “PHP.ini”.
- Upload this file to “wp-admin” directory.
Source : http://www.hongkiat.com/blog/common-wordpress-errors-with-solutions/
Most of the time we donot actually care about leaving the blanks spaces before and after the “php” tag which results on “Warning: Cannot modify header information – headers already sent by (output started at /path/blog/somefile.php:4)“” .
The above problem could be solved by removing the blank spaces before “<?php” tag and after “?>” tag. and make sure the last characters are ?>, placed at the last line with no space in between.
By default excerpts are not enabled in WordPress for pages but there is a simple function you can add to your functions.php file to enable Page Excerpts.
Open functions.php file and add this line of code to it: