The Magic Gallery Support forum is only accessible for people who have bought the Pro version of the plugin. Free users can use the Wordpress Support Forum. Users who bought the plugin can login using the credentials that were emailed to you at the time of purchase.
Fatal Error upon activating plugin
  • Hi,

    I appear to be getting the following message when I try to activate my plugin.

    Fatal error: Function name must be a string in /home/rickyfun/public_html/wp-content/plugins/magic-gallery/gallery.php on line 1545

    Should I be updating my wordpress to 3.3.1??

    Edit: I just updated to Wordpress 3.3.1 but I still have the same error.

    Ricky
    www.rickyfung.com
  • ricky.fungricky.fung
    Accepted Answer
    I've worked out what the problem was.

    I used to have Magic Gallery 2.0 however I had deleted the files. I think the database still had traces of the old plugin. Magic Gallery 3.0 detected this (Line 1545) and tried to update accordingly even though the files had been removed and thus resulted in an error. To resolves this, I've simply commented out the lines that check for the old version. 
  • Hi Ricky,

    The error you describe is indeed related to the update script. For the next update I will integrate a filecheck as well, so that there won't be an error in this case. Thanks for posting the solution over here, if anyone else runs in to this issue, I recommend using the same workaround as Ricky.
  • Hi,

    I've got the same problem, but unfortunately have very little HTML coding knowledge.

    Presumably I click edit underneath the plugin title which opens up the HTML code.

    But how do I "comment out the lines that check for the old version"?

    Your help gratefully received.

    Ian
  • Hi Ian, did you also have the 2.0 version of your plugin running on your site? I'll edit the file for you in the morning and post it here :)
  • I had removed 2.0 before installing 3.0, but like Ricky I guess there must have been some traces left on our server's MYSQL database (Fasthosts). I am running WP 3.3.1. I have subsequently installed Magic Gallery 3.0 on another site which had never seem version 2.0, and it is working fine.

    So I look forward to the fix.

    Thanks,

    Ian

  • Ok, so then this is the same error as Ricky had, wich I already fixed in the upcoming version. I've attached a new gallery.php file for you, you should just replace the old one with this and try to activate again.

    Thanks again for choosing Magic Gallery, and I hope this will fix your issues.

    Regards,

    Gerben van Dijk, Magic Gallery
    gallery.php.zip
    13K
  • Hi Gerben,

    Unfortunately the fix doesn't fully work. Please see attached file of what I did and what problems are still being encountered.

    Ian
    Magic Gallery 3-0 problems 120119.docx
    13K
  • Hi Ian, thanks for the detailed description. It seems that there were some problems, the plugin checks if the options already exist, and if they do, it doesnt set some as default (like the title of the magic gallery menu).

    I managed to recreate the problem thanks to your document, and fixed it accordingly.
    Once again, I've attached a new gallery.php file that should resolve the issue you are experiencing.

    Please let me know if it works properly :)

    Regards,

    Gerben van Dijk, Magic Gallery
    gallery.php.zip
    13K
  • Gerben,

    Installed Magic Gallery 3.0 (with second fix) OK, but there is a conflict with WordPress SEO 1.1.4. Have you and Joost "fallen out"?? (LOL)

    There does not appear to be any problem with Magic Gallery 3.0.

    Attached is my "conflict investigation masterfile" (8 pages + 2 hours of conflict-checking!) for your info.

    Thanks for your support.

    Ian

    font-family:"Times New Roman","serif";mso-fareast-font-family:"Times New Roman";
    mso-ansi-language:EN-GB;mso-fareast-language:EN-GB;mso-bidi-language:AR-SA;
    mso-bidi-font-weight:bold">
    WP Plugin Conflicts History.docx
    77K
  • Hi Ian,

    What is actually the conflict with the other plugin? I got an error when activating the Wordpress SEO 1.1.4 plugin. I fixed the problem with the attached file below, but after this error everything seemed to be working as it should.


    //edit I also noticed that both plugins were conflicting because they were using the same function name somewhere. Also fixed, please use the attached file and report back :)

    Regards,

    Gerben


    gallery.php.zip
    14K
  • Dear Gerben,

    Sorry I have not replied since January, but too many other commitments.

    I have installed your revised gallery.php file, and it allows WordPress SEO to be activated at the same time as magic gallery without the WP site crashing. However, as you can see from the attached files, when WPSEO is activated the MG title disappears from the left sidebar and the submenu. This prevents access to the MG gallery list.

    Ian
    MG missing after WPSEO activated 120311.jpg
    1098 x 557 - 446K
    MG OK after WPSEO deactivated 120311.jpg
    1076 x 551 - 419K
  • I also have an error, the prior gallery.php that as attached in this post didn't help. I had 2.0 installed prior:

    Fatal error: Cannot redeclare jquery_script() (previously declared in /home/content/44/8446944/html/wp-content/themes/movable/functions/admin_functions.php:10) in /home/content/44/8446944/html/wp-content/plugins/magic-gallery/gallery.php on line 503

    I am using WordPress 3.3.1

    Thanks, Mark

  • Please do not crosspost Mark. I've answered on your original thread.
  • Dear Gerben,

    Can you please reply to my above post dated March 11?

    Thanks,

    Ian
  • Hi Mark, Sorry for the late reply, I was on holidays and I haven't found the time till now to take a look at this, extremely busy at the moment. I reserved some time next week tuesday to look into it :) I'll get back to you here then.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Tagged