Catchable fatal error: Object of class WP_Error could not be converted to string All in One SEO Pack Troubleshooting Forum

The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Catchable fatal error: Object of class WP_Error could not be converted to string
August 3, 2009
9:00 pm
slushatwork
New Member
Forum Posts: 2
Member Since:
August 3, 2009
Offline

Hello – pages outside my Wordpress installation are receiving this error:

Catchable fatal error: Object of class WP_Error could not be converted to string in (path to site)/wordpress/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php on line 233.

In the source code, this is the comments:

<!-- All in One SEO Pack 1.6.4 by Michael Torbert of Semper Fi Web Designob_start_detected [-1,-1] -->

It only happens in files outside the Wordpress directory, where I am using the template structure (I add <?php require('./wordpress/wp-blog-header.php'); ?> to the beginning.)

I am using the latest version of Wordpress with the latest version of the SEO plugin.

I have another site where I have files outside the template directory, however, Wordpress itself is not in a directory. I do not receive errors on that site, so I'm guessing the plugin can't find the information it's looking for.

Has anybody else come across this problem, and is there a fix? 

Thanks,Chris

August 8, 2009
9:23 am
bbobchef
New Member
Forum Posts: 1
Member Since:
August 8, 2009
Offline

I am having exactly the same problem i have some pages in the same directory as wordpress that use the wordpress template but cwhich are reated outside the wordpress cms

they use

<?php

require('wp-blog-header.php');

get_header();
?>

to call the header and give the error–

Catchable fatal error: Object of class WP_Error could not be converted to string in /home/—/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php on line 233

if anyone has any idea of a fix? that would be great

August 8, 2009
10:10 am
slushatwork
New Member
Forum Posts: 2
Member Since:
August 3, 2009
Offline

I still haven't found a solution. For now, some of the important pages I pulled into Wordpress, then made sure they don't show up in the sitemap.

I can't duplicate this on another website though (even if I use the same host) – files outside the Wordpress directory work fine, even with the SEO plugin.

I tried **MODERATED – WE DON'T TALK ABOUT THAT HERE** SEO, but instead of an error, it's simply a blank page.

It's very frustrating!

Chris

August 9, 2009
8:37 am
lamnk
New Member
Forum Posts: 1
Member Since:
August 9, 2009
Offline

I also have the same error in nginx log file:

PHP Catchable fatal error:  Object of class WP_Error could not be converted to string in /var/www/vhosts/site.com/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php on line 653" while reading response header from upstream

It's strange that FastCGI throwed this error when handle GET requests for images :-/

September 2, 2009
4:02 pm
Robert
New Member
Forum Posts: 2
Member Since:
September 2, 2009
Offline

I am also having this error, and according to google a lot of people are having it, just check: http://www.google.no/search?q=…..n+line+233

October 12, 2009
5:15 pm
Robert
New Member
Forum Posts: 2
Member Since:
September 2, 2009
Offline

Anyone? This is really frustrating!

December 8, 2009
1:43 am
eyamabe
New Member
Forum Posts: 1
Member Since:
December 8, 2009
Offline

Enclose the if statement on line 286 with

        if( !is_object( $description ) ) {

        }

Lines 286 – 325 should look like this

        if( !is_object( $description ) ) {
            if (isset($description) && (strlen($description) > $this->minimum_description_length) && !(is_home() && is_paged())) {
                $description = trim(strip_tags($description));
                $description = str_replace('"', '', $description);
                
                // replace newlines on mac / windows?
                $description = str_replace("\r\n", ' ', $description);
                
                // maybe linux uses this alone
                $description = str_replace("\n", ' ', $description);
                
                if (isset($meta_string)) {
                    //$meta_string .= "\n";
                } else {
                    $meta_string = '';
                }
                
                // description format
                $description_format = $aioseop_options['aiosp_description_format'];
                if (!isset($description_format) || empty($description_format)) {
                    $description_format = "%description%";
                }
                $description = str_replace('%description%', $description, $description_format);
                $description = str_replace('%blog_title%', get_bloginfo('name'), $description);
                $description = str_replace('%blog_description%', get_bloginfo('description'), $description);
                $description = str_replace('%wp_title%', $this->get_original_title(), $description);
                //$description = html_entity_decode($description, ENT_COMPAT, get_bloginfo('charset'));
                if($aioseop_options['aiosp_can'] && is_attachment()){
                        $url = $this->aiosp_mrt_get_url($wp_query);
                                if ($url) {
                                preg_match_all('/(\d+)/', $url, $matches);
                                        if (is_array($matches)){
                                                $uniqueDesc = join('',$matches[0]);
                                        }
                        }
                $description .= ' ' . $uniqueDesc;
                }
                $meta_string .= sprintf("<meta name="description" content="%s" />", $description);
            }
        }

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online:
31 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

romiojuliat: 102

yaoming987: 50

jintuy: 50

miki1986: 33

newshow: 28

karen1234: 27

Member Stats:

Guest Posters: 0

Members: 6356

Moderators: 3

Admins: 4

Forum Stats:

Groups: 5

Forums: 23

Topics: 1546

Posts: 3450

Newest Members: carofern@cisco.com, pronto, jessie, pbaylies, ninaeast, freda

Moderators: davecashmore (2), aaron (5), tempadmin (0)

Administrators: WordPress Professional (442), hallsofmontezuma (202), onefinejay (10), stevemortiboy (4)