Articles of errors

Problem after updating plugins

So today i updated my plugins, everything went smoothly, but later i found out that my website is messed up. All the custom taxonomies are gone, then one of my plugin disappear somehow. I tried to reinstall the plugin, but i got this error Installing Plugin: WordPress SEO by Yoast 2.2.1 Downloading install package from […]

How to load script conditionally on custom field in wp_postmeta?

I’m trying to tidy up some of the code that has been doing its job for quite a while. Specifically, I used to load scripts in header.php and I’m trying to move that into functions.php. One of the scripts should be loaded only for pages with a certain value in wp_postmeta. Precisely, if and only […]

Angular not defined

I have this code on my website and I don’t know why the angular is not being defined and neither is the jquery. I’m fairly new to web development so I don’t know what to do with the coding in order for it to work. The Angular code is as follows: var app = angular.module(‘takeawaygrid’,[‘ngSanitize’,’angularUtils.directives.dirPagination’,’ui.bootstrap’ […]

Cannot load media and I get “PHP Warning: Invalid argument supplied for foreach(”

if I don’t have active debug mode, I can’t see any media in back end (in Media menu or even as in created gallery in a post editor). When I turn on debug mode: define(‘WP_DEBUG’, true); // Enable Debug logging to the /wp-content/debug.log file define(‘WP_DEBUG_LOG’, true); // Disable display of errors and warnings define(‘WP_DEBUG_DISPLAY’, false); […]

PHP error when trying to upload .mp3 files via Media Library

When I’m trying to upload a sound file (mostly .mp3’s) via the media library, I get the following errors: Warning: require(/path/to/website/wp-includes/ID3/getid3.php): failed to open stream: No such file or directory in /path/to/website/wp-admin/includes/media.php on line 2997 Fatal error: require(): Failed opening required ‘/path/to/website/wp-includes/ID3/getid3.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /path/to/website/wp-admin/includes/media.php on line 2997 First I thought there is a permission […]

What might be the reason of Couldn't fetch mysqli_result on another domain?

I’m developing a plugin and it works fine on my WordPress website, but I’ve tested it on other domains with different WordPress instances. When trying to activate the plugin on some other sites and then on every single page of that site with no other plugins active it throws the following error: Warning: mysqli_free_result(): Couldn’t […]

Access log “POST /wp-login.php HTTP/1.0” 400

I’m looking the access log and I tried some lines as: IP – – [date and hour] “POST /wp-login.php HTTP/1.0″ 400 … What’s the problem? Someone wants hack my blog? How can I resolve?

Migration problems with mysql: Operation not allowed when innodb_forced_recovery > 0

I’m transferring a bunch of domains a new host. The site names remain the same, and for the sites I’ve already migrated, no manipulation was necessary in the database. It just works once name-servers are pointed at the new box. That’s great. For some sites, however, during import, mysql throws this error: Operation not allowed […]

Theme Check errors of theme code

We are receiving these errors while we check out theme using ThemeCheck. We never seen this before and note sure what they mean or how to solve them. Can anyone so kind to tell us about these and some details on solution please: https://www.dropbox.com/s/dfbnxp4952zm8f8/0001.png?dl=0 https://www.dropbox.com/s/3oque6dw2ip0yo1/0002.png?dl=0 Thanks alot

Fatal error: Call to undefined function get_header()

Hello WordPress Developers, I got this erros messages when I check my site like below mysite.com/wp-content/themes/mythemes When I visite that url, it give me this message Fatal error: Call to undefined function get_header() in /users/my-username/www/mysite-folder/wp-content/themes/twentyfifteen/index.php on line 17 You know, the errors messages shouldn’t give us like that, Am I right? And I googled for […]