WordPress customize returns internal server error 500

Well sometimes things do not work as intended.

I have been setting a wordpress site for a local consumers cooperative www.kidekoop.org . The development was done an a localhost LAMP stack where everything worked fine. When the moment has come to upload the site I decided to do it with the WP-all-in-one Migration plugin to overwrite the old one.

Everything went smooth but… accessing the customize section of the theme throwned a internal server error 500.

the error log in the cPanel of the hosting company screemed :


Got error 'PHP message: PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in ...

I searched the net for a solution and the one that worked for me was adding this line in the wp-config.php


define('WP_MEMORY_LIMIT', '256M');

Happy bloggin and eat your vegetables!

Javascript: Validate action before redirection from html link

A straightforward way to inform the user about something before using an html link is using the `confirm` javascript function. This function is a browser element that will print a simple text message giving two posibilities ‘Cancel’ an ‘OK’. The way it is rendered depends on the browser client used as well as the language used in the response buttons.

If we want to inform the user about something before sending him to the url we can do it like this.

Imagine an html link


<a href="url_to_redirect" onclick='confirm("Are you sure about this?")'>Anchor text</a>

Replace the content of the onclick attribute with any JS script.