• Resolved asaracena

    (@asaracena)


    Just ran the Fruitful Shortcode plugin update and my site is no longer showing anything but this error:
    Fatal error: Can’t use function return value in write context in /home/content/65/5274565/html/uddami/wp-content/plugins/fruitful-shortcodes/includes/shortcodes/shortcodes.php on line 649

    I’m restoring it to the previous version. Let me know when that error is fixed.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Theme Author Fruitful Code

    (@fruitfulcode)

    Hello.

    Thanks for contacting our Support.

    What is your PHP version? There was no changes in file shortcodes.php from January.

    Most likely that the reason is in your PHP version:

    https://stackoverflow.com/questions/17139264/cant-use-function-return-value…

    Today our developer solved issue regarding old version php (5.5) support.

    In order not to wait for the update, please try use the latest developers version from GitHub:

    https://github.com/Fruitfulcode/Fruitful-shortcodes

    You should replace your data directory to data from the archive. Don’t forget to unzip it. If you didn’t change anything in the source files then your configuration will be not lost.

    Regards.

    Problem is not fixed with your update, the same error in line 772.

    In the shortcodes.php file, go to the line that it lists as having the error. It should read:

    if( empty(get_the_excerpt()) ) {

    If you are using a PHP version prior to 5.5 (from what I’m experiencing), change that line to:

    if(get_the_excerpt()== false) {

    This brought my site back removing the error.

    Problem isn’t fixed for me nor with the github code, nor with the if(get_the_excerpt()== false)..

    Theme Author Fruitful Code

    (@fruitfulcode)

    Hello @imecstamas.

    We have just added this commit to GitHub:

    https://github.com/Fruitfulcode/Fruitful-shortcodes

    It should solve issue with error on line 772.

    Regards.

    Thank you, now it’s working!

    I just ran the update and my entire site is gone. The screen is just white. I can’t even get into the WP-Admin to run anything. Here is a screen capture: https://pix.sfly.com/Wpzh40

    My site name: baerbookspress.com

    Thanks.

    Theme Author Fruitful Code

    (@fruitfulcode)

    Hello @denisebaer.

    What is your PHP version?

    Regards.

    I’m not familiar with code, so I’m not sure where to find it on my domain. My domain is on GoDaddy.

    Thread Starter asaracena

    (@asaracena)

    Probably denisebaer has the same hosting plan that I do on GoDaddy which means that she also has PHP 5.4, or maybe even 5.3 if she never updated her PHP.

    Since GoDaddy has no plan to update their PHP anytime soon for our shared hosting plan this is going to be a continual problem.

    To use your code fix it’s necessary to know something about code. My temporary solution is to use a backup to restore the site and not update the Shortcodes plugin.

    Thanks, asaracena. I’d love to use the backup, but I don’t know how to do it from GoDaddy. My site and my dashboard are completely white screens. There’s nothing visible, so whatever I need to do, I’ll have to do through GoDaddy.

    I forgot to mention that I have a Dropbox backup of my site.

    Thread Starter asaracena

    (@asaracena)

    denisebaer do you have FTP access to your site? If so probably all you need to do is replace the Fruitful Shortcodes plugin folder with your Dropbox backup. Hopefully your backup is recent…

    Yes I do! I forgot. So do I take all the files of my backup and dump them in the Fruitful Shortcuts Folder? I don’t see any files showing today’s date though.

    Thread Starter asaracena

    (@asaracena)

    Sorry to have disappeared. Don’t take all the files and put them in the Fruitful Shortcuts folder – you only need to replace the fruitful-shortcodes plugin files.

    I could try to walk you through it – could we Skype? If you want to Skype I use alisonsaracena.

    • This reply was modified 7 years, 4 months ago by asaracena.
Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Fruitful shortcodes update error’ is closed to new replies.