WordPress.org

Ready to get started?Download WordPress

Forums

TagPages
[resolved] Fatal Error on line 46 (6 posts)

  1. Drew Baker
    Member
    Posted 3 years ago #

    Hello,
    I get a fatal error on activating this plugin:

    "Parse error: syntax error, unexpected T_STRING in /usr/local/pem/vhosts/262364/webspace/httpdocs/wordpress/wp-content/plugins/tagpages/tagpages.php on line 46"

    Now I'm being forced to develop this on a sub par server, that is running PHP 5 as a CGI application, so there is a good chance that's messing with things. Never use Dotster as a host by the way!

    What's on line 46 that would cause this kind of an error? I'm guessing it's a PHP5 function.

    Thanks for the help.

  2. Bernhard Riedl
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Drew,

    That's really strange. - It seems like the checks against the tagpages object cause some error. - Can you try to change the following line (e.g. in your plugin-editor http://yourdomain.com/wp-admin/plugin-editor.php):

    Original code: if (empty($tagpages) || !is_object($tagpages) || !$tagpages instanceof TagPages)

    to

    Variant 1: if (empty($tagpages) || !is_object($tagpages) || !($tagpages instanceof TagPages))

    or to

    Variant 2: if (empty($tagpages) || !is_object($tagpages) || !is_a($tagpages, 'TagPages'))

    If it still doesn't work, you can also try to delete this line completely. So only $tagpages=new TagPages(); will be left afterwards.

    Hope that helps.

    greetz,
    Berny

  3. Drew Baker
    Member
    Posted 3 years ago #

    Hey Berny,
    Thanks for the help. I managed to fix it by using Variant 2, but then I got a fatal error on line 59.

    It's totally because Dotster is running some weird PHP5 setup. So don't worry about it, I've got to get the client to switch over a real host.

    If anyone is reading this, don't ever use Dotster!

    Thanks for the help!
    -Drew

  4. Bernhard Riedl
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Drew,

    That's even more strange. - Looks like your client's host does not have these object-related language constructs (instanceof) enabled?

    Anyway, if you want to continue on testing, please let me know, I don't have much spare time, but I'm also curious...

    Greetz,
    Berny

  5. Drew Baker
    Member
    Posted 3 years ago #

    Hey Berny,
    Thanks for the help, but I just had the client switch to MediaTemple. There were so many issues with Dotster, we were rinsing hours trying to get WP to play nice with their servers.

    Thanks for the help!

    By the way, what do you do for work? Are you available for freelance projects? We are always looking for pro plugin builders, and I like what you have done with TagPages.

    Thanks!
    Drew

  6. Bernhard Riedl
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Drew,

    You're welcome, though my help wasn't that fruitful. ;)

    >>By the way, what do you do for work?
    As my day-job I currently work as a head of architecture and development for an online marketing company, but I'm in for interesting projects, thanks! Here's my private contact page: http://www.neotrinity.at/contact-disclaimer/

    My Best,
    Berny

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags