Support » Plugin: Auto Copyright » [Plugin: Auto Copyright] Fatal Error with Recent Update

  • Resolved pgale2


    The most recent update of Auto Copyright is resulting in a fatal error message when trying to update from 2.1 to 2.1.2 and this is the result:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /home/mydomain/public_html/wp-content/plugins/auto-copyright-1/autocopyright-1.php on line 48

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’ve uploaded a new version (2.1.2) that fixes the problem.

    That fixed the fatal error issue, thank you!

    However, now all the copyright info is missing when it was there before. We didn’t change any of the code in the footer. This is across board of all our clients’ websites.

    What code are you calling in the client sites to display the copyright code?

    This is the code that we’ve been using all along since installing the plugin:

    <?php echo autocopyright(‘format=Copyright (#c#) #from# – #to#’); ?>

    It was working and displaying fine until the update that triggered the fatal error. Now with the correction of that update, the display isn’t working properly. You can see one example on this page down at the bottom:

    This is how it’s displaying on all of our sites now.

    I’ve uploaded version 2.1.3, it should correct this for you. I’m not sure why the return was failing but the new code is faster and cleaner.

    Also, if you could update your sites, here’s a better code snippet to call it.

    if ( function_exists( ‘thisismyurl_autocopyright’ ) )
    echo thisismyurl_autocopyright(‘format=Copyright (#c#) #from# – #to#’);

    The snippet first checks to see that the plugin exists before calling it. I’ve also updated the plugin to use “thisismyurl_autocopyright” instead of “autocopyright” to ensure there isn’t a conflict with any other plugins.

    I’ll give that a go. Thank you so much! I truly appreciate the help!

    This plugin is such a huge time saver for us.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Auto Copyright] Fatal Error with Recent Update’ is closed to new replies.