error log bloated by add_view

I’m not sure where this would be coming from, but it’s likely a plugin or some custom code is doing this. You could try to track this down using grep on the command line: cd /path/to/wp-content/ grep error_log -rn –include \*.php . | grep add_view This should hopefully list any PHP files that have a … Read more

Elementor page builder plugin not loading up all the way? [closed]

Had to remove a line of code from the footer of the theme. Apparently, the contact form javascript is incompatible with Elementor. <script src=”https://wordpress.stackexchange.com/questions/344070/<?php echo esc_url( get_template_directory_uri() ); ?>/js/jqBootstrapValidation.js”></script> <script src=”<?php echo esc_url( get_template_directory_uri() ); ?>/js/contact_me.js”></script>

Object of class stdClass could not be converted to string in

I solved it. Just change: foreach( $poster_id as $index => $posterss_id ) { global $post; $post = get_post( $posterss_id->ID ); $linker_sluger = $link_sluger[$index]->guid; /* … */ } Full Solution: global $wpdb; $poster_id = $wpdb ->get_results( “SELECT ID from wp_posts WHERE post_status=”publish” AND post_type=”post” AND post_content LIKE ‘%[gallery%’ ORDER BY ID DESC” ); $link_sluger = $wpdb … Read more

403 forbidden access to my whole site

You need to look at all files via your hosting File Manager (or FTP). Look for any code that shouldn’t be there. See my answer to Coinhive Malware on WordPress websites , of things to check. And here’s the process I use to clean up hacked WP sites: https://securitydawg.com/recovering-from-a-hacked-wordpress-site/ . Basically: change credentials on everything; … Read more

Published pages missing

Generally when content is missing it is often related to caching plugins. One of those plugins is OptimizePress which can sometimes conflict and make it seem the content is missing. Here is what you can try: Deactivate all plugins and check again. Ensure the server has no caching enabled by asking your hosting provider. Check … Read more

500 error for all pages and post after move localhost to server

First change database name, username and password in the config.php file /** The name of the database for WordPress */ define(‘DB_NAME’, ‘DB_NAME’); /** MySQL database username */ define(‘DB_USER’, ‘DB_USERNAME’); /** MySQL database password */ define(‘DB_PASSWORD’, ‘DB_PASSWORD’); then upload the database and run the following queries, this will change all the local links to your live … Read more

After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source

So the issue has already been resolved via the comments and the current state of the question already includes the corrected code. But I thought I should post this answer as a reminder for you, me and everyone reading this. 🙂 So first off, here’s a helpful excerpt from an article on WP Engine: The … Read more