T_OBJECT_OPERATOR error when using Blog Templates plugin with MultiDB
WPMU DEV Community
T_OBJECT_OPERATOR error when using Blog Templates plugin with MultiDB
Inactive
54 pointsSerious WPMU DEV-sterI'm new here
TeamFUtd
Member
—
20th August 2009 (2 years ago)
Hi,
I realise that the Blog Templates plugin isn't a premium plugin, but I'm thinkin that the error that we are seeing could very well be because of the MultiDB plugin we are using.
When I upload gb_templates.php to mu-plugins, I get the following error when simply trying to access my dashboard:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/futd/public_html/wp-content/mu-plugins/gb_templates.php on line 239
The reason that I think it may be the MultiDB plugin is because I'm not running that on my local install and the Blog Template plugin is working fine on there :)
I realise that the Blog Templates plugin isn't a premium plugin, but I'm thinkin that the error that we are seeing could very well be because of the MultiDB plugin we are using.
When I upload gb_templates.php to mu-plugins, I get the following error when simply trying to access my dashboard:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/futd/public_html/wp-content/mu-plugins/gb_templates.php on line 239
The reason that I think it may be the MultiDB plugin is because I'm not running that on my local install and the Blog Template plugin is working fine on there :)
Responses (2)
Erstwhile founder — 20th August 2009 (2 years ago) #
Hiya,
Line 239 of gb_template.php doesn't appear to be db related.
Which version of PHP are you running? I ask because that line appears to have some 'chaining' syntax and I believe that's only supported in PHP5+.
Thanks,
Andrew
Member — 20th August 2009 (2 years ago) #
Ahhh, that makes a little
We thought it was the db because get_term_by is a database access routine, however our local server is php 5 whilst our live is php 4
time to update!
cheers andrew
Become a member