Support » Plugin: WordPress Flickr Embed » Version 1.1 triggers fatal error

  • Resolved crbarnett


    Just recently saw this error when trying to activate new plugin version.

    Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(‘ in /home/coacht/ on line 12

    Can you guide for assistance? Thanks for taking a look.

Viewing 12 replies - 1 through 12 (of 12 total)
  • I’m getting the same error. I had to delete the plugin folder to deactivate the plugin.

    After investigating the issue I have found out that this is a PHP version problem. The plugin is using PHP namespaces (see which is only available in PHP 5.3+

    So you will need to update your server to PHP 5.3.x or greater to use this plugin. You can contact support if you are using a hosting account. I was able to change my Hostgator account to PHP 5.3.23 after contacting support and the plugin is working fine.

    I’m getting a another error AJAX error: error (Not Found) on another blog when I try to use the plugin in the visual editor.

    The issue seem to arise when the WordPress Address and the Site Address is different.

    Plugin Author hiddentao


    Of coure. Sorry about that. I imported an external Flickr API library which uses namespaces. I’ll fix that issue now.

    Plugin Author hiddentao


    Ok, version 1.2 is out and should fix both of these issues:

    • No more use of namespaces. PHP 5.2 should be enough.
    • Uses site URL rather than WP URL

    Thanks for the update but I’m still getting the AJAX error: error (Not Found).

    My blog has the WordPress files in their own directory.

    I looked up your code and when I changed the site_url() in the following function to home_url(), it seemed to fix the issue.

    public function getSignRequestApiUrl() {
            return sprintf('%s?%s=', trailingslashit(<strong>home_url()</strong>), self::SIGN_URL_PARAM_NAME);


    Thanks for the update. I am now seeing a different fatal error after upgrading to 1.2.

    Fatal error: Cannot redeclare class Flickr in /home/coacht/ on line 27

    My WordPress install is in a sub directory (not root) of my site, but the WP address and Site Address fields are identical.

    Plugin Author hiddentao


    @crbarnett There is probably another Flickr class in another plugin somewhere in your WP installation. But don’t worry the solution is for me to change this plugin’s Flickr class name to something that won’t clash.

    @dash8x Thanks for that, I’ll make that change. I wish the WP API was simpler! (see

    Plugin Author hiddentao


    Ok v1.2.1 is out with the fixes previously outlined. Hopefully it’s all working for you guys now.

    Thanks, everything is now working fine for me.

    Plugin Author hiddentao


    Considering this done.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Version 1.1 triggers fatal error’ is closed to new replies.