WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] Latest Update causing Fatal Error (47 posts)

  1. Emmageddon
    Member
    Posted 2 years ago #

    Plugin could not be activated because it triggered a fatal error.
    
    Parse error: syntax error, unexpected T_ELSE in /home/content/11/8493711/html/wp-content/plugins/wp-photo-album-plus/wppa-common-functions.php on line 589

    Hello I just pressed update for the latets version of the plugin and got the above error message.

    Please help (not had a lot of help across the WordPress forums with my past requests) as I really love this plugin and the userbility of it and have my clients site going live in 9 days.

    I have tried turnign off all other plugins, I have tried deleting this and starting again but I still get this error message.

    Thank you in advance

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. johnworr
    Member
    Posted 2 years ago #

    I have gotten this same error this morning. It took my site down completely. I use this plugin in my other sites as well and am afraid to use it now. I can't believe you would release an update that is this flawed.

  3. Emmageddon
    Member
    Posted 2 years ago #

    This plugin was brilliant and served all my needs especially as I need a site which users will add content to. Can't believe the plugin came out flawed so bad.

  4. sant0sk1
    Member
    Posted 2 years ago #

    Crazy that they shipped a syntax error, for sure. Thankfully the fix is easy. Remove line 588 from wppa-common-functions.php and it will work once again.

    (this applies to version 4.3.6)

  5. johnworr
    Member
    Posted 2 years ago #

    Awesome. Thanks for the fix!

  6. Emmageddon
    Member
    Posted 2 years ago #

    Will have to give that a try when I get home (just leaving) and can get plugged in again - thank you in advance (fingers crossed)

    Would still be interested to see if the develop will do a fix though because there will be a lot of people out there finding same problem

  7. auteur
    Member
    Posted 2 years ago #

    What is the code on 588 ? is it

    break;

    ???

  8. sant0sk1
    Member
    Posted 2 years ago #

    No, line 588 has a single curly brace on it: }. The preceding two lines are commented out, and it appears that the author just failed to also comment out that line.

    After deleting line 588, the working function looks like this:

    function wppa_qtrans($output, $lang = '') {
      if ($lang == '') {
        $output = __($output);
    //  if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
    //  $output = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($output);
      } else {
        if (function_exists('qtrans_use')) {
          $output = qtrans_use($lang, $output, false);
        }
      }
      return $output;
    }
  9. ImagesByCW
    Member
    Posted 2 years ago #

    Thanks for the fix! Worked like a charm after I had the same error :)

  10. johnworr
    Member
    Posted 2 years ago #

    Way to go sant0sk1...You da man!

  11. blackieonasis
    Member
    Posted 2 years ago #

    Thanks! that fixed it!

  12. Emmageddon
    Member
    Posted 2 years ago #

    sant0sk1 - brilliant, brilliant, brilliant! Thank you so much!

    As others have mentioned though I am not going to put my thread to solved as I still think the plugin maker needs to rectify the problem his end and restore what is a great plugin.

    Thanks

  13. sabrinova
    Member
    Posted 2 years ago #

    Thank you so much for the fix - I nearly freaked out when I thought I had lost my albums!

  14. adotei.allotey@ikalot.com
    Member
    Posted 2 years ago #

    My page does not open at all and it displays this message
    wp-content/plugins/wp-photo-album-plus/wppa-common-functions.php on line 589

    what do i do?

  15. adotei.allotey@ikalot.com
    Member
    Posted 2 years ago #

    in tried the above and now i am getting tis message, any helpppppppp

    Fatal error: require_once() [function.require]: Failed opening required 'wppa-common-functions.php' (include_path='.:/usr/lib/php5') in /homepages/41/d383435300/htdocs/wp-content/plugins/wp-photo-album-plus/wppa.php on line 55

  16. shortcranks
    Member
    Posted 2 years ago #

    thanks once again sant0sk1 - another site rescued.

  17. cloudwalker666
    Member
    Posted 2 years ago #

    Updated and got 588 error.
    Copy and pasted fix as per sant0sk1 's post
    Now getting 589 line error.
    Pls help.
    Many thanks.

  18. Wolflare
    Member
    Posted 2 years ago #

    Ok, I see people talking about fixing the code. I haven't done any code editing with WordPress at all (in fact that's the whole appeal of it). So with this problem I am unable to look at the /wp-admin of my page to even 'think' about editing code. Can someone step by step me on what i need to do to get my website back in running order? Please :)
    -Wolflare-

  19. stylerod
    Member
    Posted 2 years ago #

    Wow, thanks so much. My site is back up again.

    Wolflare. Here is how I did mine, I'm not good at this stuff either and there may be a better way.

    I FTP'd into my site (you should have ftp info from your provider. A free good ftp program is Filezilla) and copied that file to my computer. I downloaded a free program called notepad ++ to edit the file. It numbers the lines and formats it correctly. I made the change as listed above and then moved the file back to my site using the ftp program.

  20. cloudwalker666
    Member
    Posted 2 years ago #

    ok fixed my issue.
    had to comment out the actual line in the file itself manually , not via the WordPress dashboard as it wasn't working correctly.
    When commented out all works fine.

  21. dcaswell
    Member
    Posted 2 years ago #

    I found this issue as well while doing tech support for a hosting company that has a lot of wordpress sites hosted so we saw the problem a few times today. The solution above is perfect but if you would like to see a little more detail about the issue, I put a tutorial for it at
    http://www.caswellwebcreations.com/wp-photo-album-plus-error-after-upgrade

  22. Wolflare
    Member
    Posted 2 years ago #

    Dcaswell, I am so excited to be so close to actually fixing this issue thanks to your tutorial. BUT here's my hang up:

    I was able to log into my FTP via my web host, and thanks to your tutorial I was guided to the problem area of the code. I thought i was just a copy/paste away from the final fix... but i am just 'looking' at code where i am. I don't know what to do to actually edit said code... :(

  23. stylerod
    Member
    Posted 2 years ago #

    Wolflare. I just deleted the line 588. I didn't copy and paste at all.

  24. ccolotti
    Member
    Posted 2 years ago #

    Is there going to be an update? I do not see any reply from the devleoper

  25. FIshAholic929
    Member
    Posted 2 years ago #

    Nicely done! Commented out line 588 and back up and running! Thanks

  26. Wolflare
    Member
    Posted 2 years ago #

    Copy and paste or delete a line, either should work. the problem is that the code as i am viewing it is not editable.

    It's no more editable than me just viewing words on someone else's website. it's selectable, but I don't know how to edit this information. perhaps i am not viewing it in the right way/place.

  27. FIshAholic929
    Member
    Posted 2 years ago #

    What Operating system are you running on? What permissions does the file have? Maybe you need to contact your hosting provider to figure out why you don't have read/write access to your files.

  28. davidallen23
    Member
    Posted 2 years ago #

    sant0sk1 method works fine but there's still a problem in that various links are redirecting to Home Page. OpaJaap we need a fix!

  29. Wolflare
    Member
    Posted 2 years ago #

    our host is IPower. I should have full admin access. I clicked on a button labeled FTP. It then led me to a page that said "To access your account using an FTP client, you need to connect to http://ftp.mywebsite.com (my website name appearing in place of 'mywebsite') with your FTP username and password.

    Did so and it opened a new tab with "Index of /" at the top with some folders listed below. I clicked my way through the folders to find the one from Dcaswell's tutorial and clicked on the wppa-common-functions.php button. New tab opened and code a plenty appears. But it's just to view the code. there is no editing it there.

    Does that help explain my scenario any better?

    Others were talking about downloading and uploading... I don't know what to do differently.

    (feeling like the slow kid over here as everyone else shows up and has this fixed in no time with no problems lol)

  30. stylerod
    Member
    Posted 2 years ago #

    Wolflare. I used a program called Filezilla to connect to my website. With that you can drag and drop files from your site to your computer.

    Once on your computer you can edit it with wordpad or download a program called notepad ++ which will number the lines to make it easier to find the line that needs to be changed.

    Once you delete/copy and paste or whatever. Save the file and drag and drop it back to your site.

    Before overwriting the file on your site I would rename it to wppa-common-functions.old or something. You can do this by right clicking the file from Filezilla.

    Hope that helps some.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic