Auto Copyright
[resolved] Fatal Error with Recent Update (7 posts)

  1. pgale2
    Posted 3 years ago #

    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


  2. christopherross
    Posted 3 years ago #

    I've uploaded a new version (2.1.2) that fixes the problem.

  3. pgale2
    Posted 3 years ago #

    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.

  4. christopherross
    Posted 3 years ago #

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

  5. pgale2
    Posted 3 years ago #

    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.

  6. christopherross
    Posted 3 years ago #

    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.

  7. pgale2
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.