Catchable WP_Error - wordpress

I am getting this error on my WordPress installation
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/user/public_html/wp-includes/taxonomy.php on line 390
I tried to disable all themes and plugins by renaming the plugins folder but I can't access the backend.
Please advice
UPDATE: I replaced all the files inside wp-admin and wp-includes and it brought me back to the original error I had, which points to rewrite.php instead of taxonomy.php (in other words, taxonomy.php was an error received as a result of changing something in wp-includes).
The real error is:
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/tsbiet/public_html/wp-includes/rewrite.php on line 280
Still looking for help on this question. Thanks.

This error can happen if you somehow delete a custom taxonomy that is linked to a menu item.
Back up your database, go to the to wp_term_taxonomy table and query for all records with nav_menu in the taxonomy column and delete them.

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

Remove Drupal Commerce Empty Products

I am getting empty products in my views recently after the first few rounds of having a crawler import the data for the products. Unfortunately, after deleting all but two products that existed beforehand, These "empty" products still exist. I also made sure there were no extra variation types, and cleared the commerce_line_item table. Does anybody know where I can find and get rid of these nameless products?
Here is a photo for reference: http://i.imgur.com/bISsCmB.png [1]
I noticed this title (this product was created by the) was able to be selected and edited. This is the only title that shows up: http://i.imgur.com/xwZKRBJ.png
Unfortunately, after trying to edit it, this is the error I get: http://i.imgur.com/e0sbwsT.png
After running #Clive's script, I couldn't flush the cache and I received these errors:
Notice: Undefined index: label in entity_views_field_definition() (line 191 of /home/accuairt/public_html/profiles/commerce_kickstart/modules/contrib/entity/views/entity.views.inc).
Notice: Undefined index: search_api_views_fulltext in views_handler_filter->accept_exposed_input() (line 1260 of /home/accuairt/public_html/profiles/commerce_kickstart/modules/contrib/views/handlers/views_handler_filter.inc).
Notice: Undefined index: table in entity_views_plugin_row_entity_view->init() (line 20 of /home/accuairt/public_html/profiles/commerce_kickstart/modules/contrib/entity/views/plugins/entity_views_plugin_row_entity_view.inc).
SearchApiException: Unknown or invalid item type node. in search_api_get_datasource_controller() (line 1506 of /home/accuairt/public_html/profiles/commerce_kickstart/modules/contrib/search_api/search_api.module).
STATUS MESSAGE Operating in maintenance mode. Go online.
The website encountered an unexpected error. Please try again later.
I restored a backup from a few hours ago to get the site back where it was.
edit: 12/18 Still looking for an answer. There has to be a table I can clear to get rid of this information.
If you know for definite that all products without a title should be deleted you can try something like this:
$query = new \EntityFieldQuery();
$query->entityCondition('entity_type', 'commerce_product')
->propertyCondition('title', '');
$results = $query->execute();
if (!empty($results['commerce_product'])) {
commerce_product_delete_multiple(array_keys($results['commerce_product']));
}
It might be wise to inspect the results of the query before you run the delete function, just to make sure you're not deleting anything you want to keep by mistake.

Error when adding a new cck field

For some reason I get error on lots of pages after adding a simple text field to a content type. And error on pages that doesn't use the content type, and hasn't any relation to the modified content type.
The content type is just a regular form where customers can add some simple data that is later displayed in a view.
The new field is addad to a contenttype that already has som data stored with it.
In the log I found this error message:
Warning: preg_match() [function.preg-match]: Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /home/u/u4144602/www/profiles/nodestream/modules/ctools/includes/cleanstring.inc).
Does anyone know?
It's a drupal 6 installation, a nodestream distribution.
I too got this problem earlier.I've replaced
'\x{a80b}\x{a823}-\x{a82b}\x{d800}-\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}\x{fd3f}'.
with
'\x{a80b}\x{a823}-\x{a82b}\x{e000}-\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}\x{fd3f}'.
Hope this link might help u... :)
http://drupal.org/node/1878284
http://drupal.org/node/1444006

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;}

PHP Warning/Error on Wordpress Site

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?

Resources