WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pgale2
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/auto-copyright-1/

  2. christopherross
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. pgale2
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. pgale2
    Member
    Posted 1 year 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:

    http://www.ylwebstudio.com/ep/

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

  6. christopherross
    Member
    Plugin Author

    Posted 1 year 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.

    <?php
    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
    Member
    Posted 1 year 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

Tags

No tags yet.