The ( error_log ) file size is very large

Turn off the debug error loggins with this command in the wp-config.php file: define( ‘WP_DEBUG’, false ); The errors you are seeing are ‘warning’ (I think of them as ‘benign’) and have to do with coding practices not allowing for empty ‘loop’ variables. You only want the WP_DEBUG to be true on development systems. If … Read more

Where can I get a full list of wordpress errors in plain text?

Enable debug logging in wp-config.php: define( ‘WP_DEBUG’, true ); // Enable debugging // Default logging path is wp-content/debug.log define( ‘WP_DEBUG_LOG’, true /* or custom path e.g. ‘/path/to/debug.log’ */ ); define( ‘WP_DEBUG_DISPLAY’, true /* or false if you want to just log the errors */ ); That will capture and store all errors (either from core … Read more

Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ [closed]

It’s not a very good practice to echo html code. Also you have errors with quotes. Correct way to do this would be: <a href=”https://wordpress.stackexchange.com/questions/106828/mailto:type%20email%20address%20here?subject=I%20wanted%20to%20share%20this%20post%20with%20you%20from%20<?php echo rawurlencode(get_bloginfo(“name’)); ?>&body=<?php echo rawurlencode(get_the_title()); ?>%20%20%3A%20%20<?php echo rawurlencode(get_the_excerpt()); ?>%20%20%2D%20%20%28%20<?php echo rawurlencode(get_permalink()); ?>%20%29″ title=”Email to a friend/colleague” target=”_blank”>Share via Email</a>

WordPress “Allowed memory size” on wp-db.php [closed]

You need to increase the php-memory-limit you can find out how much you have now with <?php phpinfo(); ?> Edit php.ini .Search “memory_limit” in your php.ini, and change the value of it. If no “memory_limit” found, add the following line at the end of php.ini memory_limit = 128M ; /* Change the 128M to your … Read more

Error thrown Cannot use object of type WP_Error as array

One of your plugin or your theme is throwing this error. Best way to identify it is to look at the path of the file that is throwing this error. Should be something like wp-content/plugins/xxx. Then if you go to your WordPress install, navigate to wp-content/plugins look for that folder and rename it, the plugin … Read more

Add clickable function in functions.php – parse error [closed]

For clarity’s sake regarding my comments, this is something more akin to what I’m talking about… // plugins/wpse392844/wpse392844.php function wpse392844_enqueue_assets() { wp_enqueue_script( ‘wpse392844-frontend’, plugins_url( ‘assets/js/frontend.js’, __FILE__ ) ); } add_action( ‘wp_enqueue_scripts’, ‘wpse392844_enqueue_assets’ ); // plugins/wpse392844/assets/js/frontend.js function thfull() { document.getElementById(‘thf’).style.maxHeight=”1000px”; } (we’re defining the thfull() function in JavaScript rather than PHP such that the browser will … Read more

Parse error: syntax error, unexpected T_FUNCTION

That is called an Anonymous Function and is only supported in later versions of PHP, specifically 5.3.0 and later. If I were a betting man I would say your server has an earlier version of PHP. Try this instead: /*Add meta boxes to contact page*/ function contact_metaboxes( \WP_Post $post ) { global $post; if( ! … Read more

problem ajaxurl – designthemes-core-features

is the “designthemes-core-features” plugin of a theme, this code can be found in the admin.js file inside the JS folder. The code “url: ajaxurl,” (says: “ajaxurl is not defined”) Would there be any idea? Would you like some more information? Thank you