WordPress.org

Ready to get started?Download WordPress

Forums

JSJ Gallery Slideshow
[resolved] displayOptionsForm (9 posts)

  1. FlaviusDemian
    Member
    Posted 1 year ago #

    Hello,

    After I installed this plugin I went to Setings -> JSJ gallery Slideshow and I get the following error:

    Fatal error: Call to undefined method JSJGallerySlideshow::displayOptionsForm() in C:\xampp\htdocs\installs\wordpress\wp-content\plugins\jsj-gallery-slideshow\jsj-gallery-slideshow.php on line 244

    I am a programmer and I can tell you that the function exists, also I haven't changed the files at all.
    Any suggestions? Thanks

    http://wordpress.org/plugins/jsj-gallery-slideshow/

  2. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 1 year ago #

    Wow, this is actually the first really interesting bug I've seen since I released this plugin!

    Is that all you get in that page?

    Maybe it has something to do with the fact that's it's a private function. Could you try changing it to public. That would be on line 300 of jsj-gallery-slideshow.php:

    From:

    private function displayOptionsForm($options_group, $tab = 'simple'){ ?>

    To:

    public function displayOptionsForm($options_group, $tab = 'simple'){ ?>

    Could you also try doing the usual and making sure you have the latest version of WP and that you disabled all other plugins.

    Let me know if any of those work. I'll think of something else if none of those do.

  3. FlaviusDemian
    Member
    Posted 1 year ago #

    Reinstalled the plugin, changed to publci but no use.

  4. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 1 year ago #

    What version of php are you running? Do you know how to check this?

    <?php phpinfo(); ?>

  5. scherar
    Member
    Posted 1 year ago #

    Hi! Same problem here.
    PHP 5.3
    WP 3.8

    Thanks for your help!

  6. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 1 year ago #

    Can you try this and let me know if this works. Sorry, that's I'm giving you all these tasks, but I can't replicate these errors.

    - Change displayOptionsForm to display_options_form. This function is called a couple of times in the .php so make sure you replace all of them

    - Can you try putting that function ABOVE public function options_page(){

    - Can you try adding this code BEFORE displayOptionsForm is called and see if the error has to do with any class function or with that function specifically.

    `
    $colors = $this->get_admin_color();
    `

    scherar: Are you on windows/XAMPP too?

  7. FlaviusDemian
    Member
    Posted 1 year ago #

    PHP Version 5.4.22
    WP 3.8
    windows/xampp.
    I'll try later to make the changes you suggested.

  8. scherar
    Member
    Posted 1 year ago #

    Jorge, you got an error in line 293:

    <? {

    must be

    <?php {

    this fixed it for me...
    greetings, scherar

  9. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 1 year ago #

    89 <?php in the code and I only had to miss once! haha

    This will be fixed in the next release of the plugin. Give it a couple of days.

    Thanks for finding that!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic