Error when installing theme – “failed to open stream: No such file or directory in…”

Could not copy file. /home/content/38/7184638/html/wp-content/themes/SEWS_theme/img/border.png because there is no file border.png. Maybe it is not included in the zip file. Or there was errors while unzipping the zip archive. The directory in the errpor message is ‘wp-content/upgrade/’, so I think you do not upload and install a theme, you try to update a already installed … Read more

How can I fix this code [duplicate]

prepare has always required two arguments, it just didn’t throw an error when used incorrectly until 3.5. Basically, the use of prepare in this case is not doing anything. Since you’re not passing potentially unsafe data to the query, you can remove it entirely to get rid of the error and just pass your query … Read more

W3 Total Cache “Preview mode could not be disabled” [closed]

W3 Total Cache plugin basically removes w3-total-cache-config-preview.php, when disabling the preview mode. In /wp-content/ folder, please check if you have a file named w3-total-cache-config.php. If it exists, please compare it with w3-total-cache-config-preview.php file. If both have the same content, rename it to w3-total-cache-config-preview-backup.php and reload your site’s /wp-admin/admin.php?page=w3tc_general. If both have different content, please copy … Read more

Trying to get property of non-object wordpress error message

Given that the page works if you leave the original query alone, your solution is pretty simple. Leave the original query alone. You don’t need to overwrite that query in order to created secondary loops. Instead of this: query_single(‘dealers’, ‘publish’, ‘1’, $taxtype, $value); if (have_posts()) : while (have_posts()) : the_post(); You want: $myq = new … Read more

Returning error upon comment being flagged as spam

This is how I’ve handled passing messages back to the user before: within your current function, set a transient with your message: set_transient( ‘admin_notice’, ‘Please put down your weapon. You have 20 seconds to comply.’ ); Then add a new hooked function: function admin_notices() { $notice = get_transient( ‘admin_notice’ ); if ( $notice ) { … Read more

Why do these errors appear on my wordpress site? [closed]

It is likely a callback function for something. My guess is that somewhere something is trying to use a function named mytheme_admin_bar_render as a callback but that function has not been defined. Something like… add_filter(‘something’,’mytheme_admin_bar_render’); … possibly but there are many, many possibilities. grep your wp-content folder for mytheme_admin_bar_render, or use an IDE that can … Read more