Warnings On Updating WordPress

The issue is that the files cannot be written to by the web/php process due to permissions. This is: Good! Those files can’t be updated with malware and other nasty surprises Bad! The updater cant update them either So, I’d advise you do the following: Follow these chmod settings religiously What is true chmod for … Read more

Get rid of this Strict Standards warning [closed]

This occurs because you do the explode() call inside the next() call. The reason I think is, by strict standards you shouldn’t pass a function to a function like this, because, like @AndrewBartel said, of reference, which would be missing. Doing it like shown below should work and would be correct: $nval = explode( ‘/themes/’, … Read more

Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages

Let’s take a look at get_the_terms Codex page. We can find there that this function may return: (array|false|WP_Error) Array of WP_Term objects on success, false if there are no terms or the post does not exist, WP_Error on failure. So your code will work correct only in one case – when the function returns an … Read more

Deprecated: Function get_magic_quotes_gpc() is deprecated in WordPress that causes height change in hoe slider, all Tabs on website

magic_quotes_gpc is a php.ini setting to automatically add backslash escapes to certain characters in input values (from GPC = Get, Post, Cookie). It’s been long deprecated in PHP, back as far as 5.x I think. I guess either your theme or a slider plugin is calling this because WordPress core doesn’t (except one reference in … Read more

How to fix Warning: call_user_func_array()?

Not sure this will help but after dealing with the exact same error message for the last 2 days I finally figured out what was happening. It was simply a matter of attempting to call the function before the system knew it existed. In my case, I had written the function in a separate–not-publicly-accessible–directory and … Read more

How to properly setup an activation hook

You first example looks corrent. There is however a typo, hence class ‘MyPluginAdmin’ not found. You include myplugin-admin.php, but then your question seems to suggest the page holding the class is in fact my-plugin-admin.php (with a hypen). If I correct the typo and run the code there are no warnings. Edit (this works correctly): my-plugin.php: … Read more

Ajax stops working when logged in?

A few things that I see: There’s a space in your first add_action declaration. Should be add_action(‘wp_ajax_wppl_function’, ‘wppl_function’); Have you declared wppl_function to run it? Have you localized your scripts when logged in? Please review the codex entry on wp_ajax_nopriv (action)