PHP Warning/Error on Wordpress Site - wordpress

I'm getting this warning message on a Wordpress I have just setup:
http://wptest.paddingtonterraces.com.au/
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'gllr_add_script' was given in /home/paddingt/public_html/wptest/wp-includes/plugin.php on line 403
Anyone know how to sort this one out?

Deactive your plugins and theme and activate them one by one so you will find out which component causes the problem or which plugin does the function comes from.

It's looking for a function named gllr_add_script... does that function exist?

Related

WordPress Fatal Error Class 'wpforge_walker' not found line 317

I'm receiving the following error on my WordPress website:
Fatal error: Class 'wpforge_walker' not found in
/home/content/25/11572025/html/site/wp-content/themes/wp-starter/content-nav.php
on line 317
On my FTP File Manager, line 317 on "content-nav.php" shows the following:
'walker' => new wpforge_walker( array(
After reading on this issue other forums mentioned how removing the parenthesis might solve the problem. Accordingly, this is how I saved the "content-nav.php" file:
'walker' => new wpforge_walker
After refreshing my website, it is showing the following error:
Parse error: syntax error, unexpected ''in_top_bar''
(T_CONSTANT_ENCAPSED_STRING), expecting ')' in
/home/content/25/11572025/html/site/wp-content/themes/wp-starter/content-nav.php
on line 319
I went back to my FTP File Manager and put back the "( array(" into the "content-nav.php" file and now I'm back to my initial problem.
Any assistance would be appreciated. Thanks!
You are using the Theme wp-starter, can you share any more info about it, developer, website, etc.?
Share a bigger chunk of code from content-nav.php, for example rows 300 till 350. Make sure you include the complete block of code.
Removing ( array( will result in another error. This is normal because it will completely break the function.
Some info about the error.
The code wants to load the class wpforge_walker, but it isn't available. Something went wrong with including the file that contains that particular class.
In the error log, do you see another returning log (notice or something else) before the fatal error? I'm looking for an include_once() / No such file or directory error, or something like that.
Another option is to re-upload ALL theme files, maybe an update or something else did not complete correctly. You can overwrite all theme files savely.
Edit: re-upload all theme files fixed the problem.
Disable theme to get WP admin access.
Using FTP or a hosting filemanager you can rename the theme folder, example 'wp-starter-off'.
WP will then deactivate the theme and you can access WP again.
Regards, Bjorn

error in WP Snap plugin

this plugin is showing following error :
"Warning: preg_match() [function.preg-match]: Compilation failed: missing terminating ] for character class at offset 4"
I tried to solve it by adding \ at fourth offset, error was removed but now plugin is not working properly.
What is the full error message? There should be a particular php file at the end of the error.
There's probably an error in your permalink structure, or if you added some type of permalink plugin. Or you're probably getting that error because your blog has no content. It also could mean that you're using an older version of the plugin. Again, it's difficult to say without the entire error message, and what php file is causing the problem. But you can try changing this:
Code: Select all
if (preg_match("/$bad/i", strtolower($comments))){$allow = false;}
to this:
Code: Select all
if (#preg_match("/$bad/i", strtolower($comments))){$allow = false;}

Wordpress error when sending comment

I'm using the default comments template, on my own self-built theme. When I send a comment I get the following error message:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_set_comment_cookies' not found or invalid function name in /home/mattator/public_html/wp-includes/plugin.php on line 403
Warning: Cannot modify header information - headers already sent by (output started at /home/mattator/public_html/wp-includes/plugin.php:403) in /home/mattator/public_html/wp-includes/pluggable.php on line 881
couldn't find a call to the funciton 'wp_set_comment_cookies' anywhere in the code. It is noteworthy that despite the error message the comment is being sent properly. I also tried to disable all plugins but the problem persists.
Any ideas would be appreciated.
May be you have some extra white space before
<?php
tag in starting of a theme file
Thanks
Well, I experimented a little bit, and as turns out the problem was a call to the function "nocache_headers()", in Line 18 of the file "wp-comments-post.php" which lies at WP root directory.
I deleted it, and voila, everything works. Not sure why though.

Wordpress and FeedBurner Error

I used to use FeedSmith FeedBurner Plugin for my wordpress. Today, suddenly, my feeds are giving following errors under each Post Title. I recently upgrade to WP 3.0.1 but has been a week.
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Array' was given in /home/name/wordpress/wp-includes/plugin.php on line 166
I deactivated the plugin and install new plugin "FD Feedburner Plugin" and try again but still no luck. The error still persist even on FeedBurner Page.
Any idea please?
Hopefully you have this fixed already. But I'd like to throw some thoughts on this since it remains unanswered. It appears that 50 people have come here since you posted 7 months ago so maybe I can help someone looking to resolve this or a similar problem. My answer is not specific to FeedBurner or even Wordpress.
The call_user_func_array function takes a string or an array as the first parameter and this parameter determines what function/method call will be made. In the case that the first parameter is an array then the method name should actually be the second element of the array and the first element should be the class name that contains the method.
For example:
call_user_func_array(array($class_name, $method_name), $params)
Because your error is saying that "'Array' was given" I can only assume that the first parameter passed to the function is either an empty array, the first parameter is an array with the first element being an empty array, or somewhere earlier in the code the class or function name was converted to a string as an array.
The same error message can result if the first function parameter is an empty array
Both of the following BAD examples will give the "'Array' was given" error:
call_user_func_array(array(), $params);
call_user_func_array(array(array(), 'method_name'), $params);
So if nothing else, you know that first parameter in the call_user_func_array function call is not what it needs to be.
Hope it helps!

Drupal, broken view, need help

I am getting strange problem.
When I am listing some content type, intead of data I am getting 'n/a' string.
I listed views, and on one view I have 'Warning - Broken view!' message.
I can't edit / delete this view because it always redirect to front page.
I checked my logs and all I see is repeating:
# warning: Invalid argument supplied for foreach() in /home/www/testetelgsm/www/includes/common.inc on line 3364.
# warning: Invalid argument supplied for foreach() in /home/www/testetelgsm/www/modules/cck/content.module on line 1284.
# warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/testetelgsm/www/includes/common.inc on line 3361.
How can I delete / edit this view?
Could somebody help?
Regards
You need to go to the views admin page at: admin/build/views. Here you can find a list of all your views and edit/delete them.
It sounds like you are trying to pull something that doesn't exist anymore like a deleted cck field. Anyways, if it doesn't work to edit it, try to recreate it.
You can make views into features with the features module. That will define the views in a custom module that is generated for you, and make the view defined in code. That will make it possible to restore it, if it gets edited.

Resources