I'm trying to learn wordpress by creating an e-commerce website every time I load the web page I get the following error:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 30720 bytes) in /public_html/wp-content/plugins/wp-e-commerce/wpsc-widgets/category_widget.php on line 61
So far I have tried the following:
putting this at the top of the wp-config.php file
define('WP_MEMORY_LIMIT', '64M');
and putting this at the top of the .htaccess file
php_value memory_limit 64M
I can't even access wp-login.php page as it throws the same error.
When the admin is inaccessible, the first step is to connect via FTP and rename the folder wp-content/plugins to plugins-old and try to connect.
It will probably work. Then rename the folder back and go enabling the plugins one by one until you find the culprit. If not, do the same with the themes folder.
Useful info:
Troubleshooting Master List
Similar posts at WordPress Answers
Related
I have one problem in WordPress. I need to install SEO plugin. I see an error in dashboard, Update Failed and ask me to download a plugin in the .zip format.
Plugin Uploading Error
1. Enable WP_DEBUG in wp-config file.
2. Check your error.log for more details.
3. Disable open_basedir in php.ini.
4. Increase WP_MEMORY_LIMIT in wp-config file or memory_limit in php.ini.
5. Increase upload_max_size, post_max_size and max_execution_time in php.ini.
6. The 500 internal server error can be the result of a faulty plugin or two conflicting plugins. To test it rename plugins folder to something like plugins_old to deactivate all plugins at once.
7. Repair your WordPress core files by uploading fresh versions of wp-admin and wp-includes folders.
8. If none of the above points solved your problem, contact your webhost support.
I downloaded the theme from the website and want to install it. But it said
Warning: POST Content-Length of 24413939 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
Are you sure you want to do this?
Please try again.
I press try again, and it back to the control panel and nothing happen, so how can I install the theme successfully?
You need to update your php.ini file following variable:
post_max_size
OR
If php.ini not accessible try pasting your theme directly under wp-content/themes directory and it will appear on your dashboard->themes.
>
I am getting this error despite of trying every possible solution provided on internet. Whenever i try to install a plugin i get this error again and again
This is what i have already done :-
I changed the upload_max_filesize in php.ini present in apache2 folder to 30M and pasted it in wp-admin directory
Secondly i created a .htaccess file in wp-admin directory and pasted some code I found on the internet.
Even after all this i am getting this error . Please help me out.
Its mean you are uploading the file which is bigger than your upload_max_filesize in php ini
Locate the php.ini file in the folder your upload script resides in.
In the php.ini file, locate the line called 'upload_max_filesize =
2M'. Modify that entry to read
'upload_max_filesize = 10M', or whatever your script requires. (M =
megabytes)
First of all you need to verify that the php.ini that you are modifying is actually affecting the php that is running on apache (usually php runs as an apache module) so, what you need to do is change the upload_max_filesize directive and then run a php script with the phpinfo() function and check that it actually is taking the change, if it isn't check in that page where it says the php.ini script is running and verify it's the same file you're modifying.
There are circumstances where there are different php.ini files, even files that aren't even named as php.ini but that are loading the configuration of php, so it is important for you to figure out which file is actually relevant to the apache module, also you will find the need to check for this when you run php from the command line.
I had the same problem, I tried several solutions and none worked until I edited the php.ini file in /etc/php5/apache2/php.ini and not in /etc/php5/cli/php.ini as everyone said.
Just change these lines, save and restart your Apache:
post_max_size = 100M
upload_max_filesize = 100M
max_execution_time = 180
max_input_time = 180
memory_limit = 256M
I'm using Wordpress plugin called User Avatar, that uses Timthumb for image display. When I open page to show the image, it gives error 500 in the console, and when I use that image link in new tab, I get following error:
A TimThumb error has occured
The following error(s) occured:
Could not create the index.html file - to fix this create an empty file named index.html file in the cache directory.
Could not create cache clean timestamp file.
Query String : src=http://my.domain.com/wp-content/uploads/avatars/1/1358504649-bpfull.jpg&w=150&id=1&random=1358504649
TimThumb version : 2.8.10
I persume it's a server error or misconfiguration, everything is being uploaded into folder uploads, then into avatars subfolder, which has 0777 permission, folder 1 also has 0777.
Insinde, there are both cache and temp folders, both with 0777 permissions.
GD Image Lib is enabled on the server.
Look in your timthumb-config.php, to check if the FILE_CACHE_DIRECTORY is set to the directory you think it is.
You could also delete the existing index.html file that's in the tim thumb cache directory, as tim thumb will automatically create it (back it up somewhere first just in case)
You may also need to check the config file to see if the MEMORY_LIMIT is set high enough for your particular images.
You should also check that the cache folder is owned by the webserver and not by you.
Other troubleshooting help here: http://www.binarymoon.co.uk/2010/11/timthumb-hints-tips/
Just like #jopacic said. What also worked for me was the following:
Changing the "cache" directory permission to 777
Deleting index.html file in the "cache" directory
Try that, it should work
I uploaded a freshly downloaded copy of Wordpress 4.2.2 here: http://www.onedayonemillion.com/test/ and all I get is a blank page.
There are no .htaccess or wp-config.php files in the root directory.
No database has been connected yet.
I tried the same in another directory (/dev/) and it did the same.
I have no plugins installed or activated.
This is a fresh copy.
I added an phpinfo file here: http://www.onedayonemillion.com/test/info.php
Why can't I even get the install page to show up?
I didn't understand why there is no wp-config.php in the directory, it would be good you post what is in the directory. Anyway, you can check items like (sometimes it is just that):
some files with no ending "?>" ending the file;
any require_once methods calling non-existing files
(you said no, but) wp-config has wrong or non-set definitions (user, database)
check permissions/ownership to the folder
Well, I know it can be lame, but I had problem with definition in WPLANG define,
so I put an
echo "<br> there is no error until here";
through the files untill I find that was missing a comma at the definition. If the phrase is displayed, your installation files untill that point are working out.
Your phpinfo says the display_errors is off.
modify your php.ini with this line:
display_errors = on
you should restart the server after modification.
you can only track the error only if the error reporting is on in the server