WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-Project] Problems with xLanguage & WP Project (9 posts)

  1. Nachtmeister
    Member
    Posted 5 years ago #

    After activating wp-project I got this message on the top of my wp admin panel:


    Warning:
    unserialize() expects parameter 1 to be string, array given in /home/morph/public_html/four/wp-content/plugins/wp-project/wp-project.php on line 53

    Warning: Cannot modify header information - headers already sent by (output started at /home/morph/public_html/four/wp-content/plugins/wp-project/wp-project.php:53) in /home/morph/public_html/four/wp-content/plugins/xlanguage/xlanguage.php on line 224

    I don't tested the plugin features. Wp Controlpanel works fine but the message is on every admin page. Any ideas, how I could fix this problem? I'm not a good programmer...

    http://wordpress.org/extend/plugins/wp-project/

  2. nickohrn
    Member
    Posted 5 years ago #

    @Nachtmeister - I'm not sure what the problem is, but I'll try to make some time to look into it. I'm not familiari with xlanguage, so I'll have to look through that first.

  3. sam0737
    Member
    Posted 5 years ago #

    I'm afraid it's not anything related to xLanguage. xLanguage line 224 is a SetCookie call, but because the error (and more importantly error message) is thrown earlier, any HTTP Header related function would then be fatal because it's too late.

    The particular line 53 in wp-project is about unserialize an get_option call, but AFAIK get_option already does unsearialize, unless you are doing searialization in the wp-project itself, or else it should be a bug.

    I noticed that the code of this exact line is different from the v1.2.3 (current marked stable version) and the trunk version, I bet it has been fixed in the un-released trunk version?

  4. Nachtmeister
    Member
    Posted 5 years ago #

    For the better overview:

    WP project v 1.2.3.
    line 53
    $this->options = unserialize( get_option( 'WP-Project Options' ) );

    xLanguage 1.3.3.
    line 224
    setcookie( xLanguageTagCookie, $this->language, time() + 30000000, COOKIEPATH );

    I have no idea what this means *smile*. But I hope you guys.

  5. nickohrn
    Member
    Posted 5 years ago #

    That extra unserialize is my bad. I don't know why I threw that in there.

  6. Nachtmeister
    Member
    Posted 5 years ago #

    So do you think there will come a bugfix in the foreseeable future? ;)

  7. seaward83
    Member
    Posted 5 years ago #

    Extracted the plug-in, enabled, looks cool - click on the WP-Project tab, so far, so good, shows headers "WP-Project, Projects, Clients,etc" - Projects is highlighted in Red - click on "Projects"... nothing happens... real estate below headers remains blank... any ideas? Thanks...

  8. nickohrn
    Member
    Posted 5 years ago #

    @everyone - I'm going to try to find some time to work on this plugin on Thursday, August 28th, so expect a bugfix, at least, on that day.

  9. allQoo
    Member
    Posted 5 years ago #

    Has the plugin ceased development? The available download is till on 1.2.3 and I still got that unserialize error on my 2.7.1 WP.

Topic Closed

This topic has been closed to new replies.

About this Topic