WordPress.org

Ready to get started?Download WordPress

Forums

SM Gallery
[resolved] Gallery fails to draw main window (22 posts)

  1. starlilyth
    Member
    Posted 2 years ago #

    On two different WP installs on the same server, when I install the SM Gallery plugin and create a page with the [gallery] shortcode, then attach pictures, the thumbnails show up, but the main picture window does not.

    I have used this plugin on a different server and it worked fine (very easy!) so Im pretty sure I am doing it right.

    The server is Centos 6. I suspect I am just missing some small piece, but I dont know what!

    You can see the problem at http://blog.starlilyth.net/pics/

    http://wordpress.org/extend/plugins/sm-gallery/

  2. Seth Carstens
    Member
    Plugin Author

    Posted 2 years ago #

    note that you have javascript that's crashing on that page, which is why its not working.

    looking again, it appears that the server you have it on does not accept shorthand PHP

    title: '<?=$title; ?>',

    I realize this is not proper coding technique, and we will address the problem in the next release but I can't guarantee that will be out right away so I would, for now, suggest you turn this option on:
    http://www.php.net/manual/en/ini.core.php#ini.short-open-tag

  3. starlilyth
    Member
    Posted 2 years ago #

    Ah ha! Setting short_open_tag=on did fix it, but as that is OFF on production servers by default I would fix up your code :)

    Thank you for the fix!

  4. Seth Carstens
    Member
    Plugin Author

    Posted 2 years ago #

    Agreed, next release will contain fix for all shorthand codes

  5. mores
    Member
    Posted 2 years ago #

    May I chime in here ... I have the exact same problem. Thumbs show up but no large image and no navigation arrows.
    phpinfo showed me that php short open is activated. What am I doing wrong?

    Any scripts I need to call?

  6. starlilyth
    Member
    Posted 2 years ago #

    Not so far as I know, setting that option to ON fixed it for me. No other scripts or changes were necessary.

  7. mores
    Member
    Posted 2 years ago #

    Using "examine element" in google Chrome I found this error message:

    Uncaught TypeError: Object [object Object] has no method 'adGallery' /test/:67
    (anonymous function) /test/:67
    f.event.dispatch jquery.js:3
    f.event.add.h.handle.i jquery.js:3
  8. Seth Carstens
    Member
    Plugin Author

    Posted 2 years ago #

    mores, can we get a link to the page you have it on so I can take a look and see if I can identify the issue from the front end?

  9. mores
    Member
    Posted 2 years ago #

    http://www.uschioswald.at/test

    You need to first log in
    http://www.uschioswald.at/wp-admin
    user and pass: testadmin

  10. Seth Carstens
    Member
    Plugin Author

    Posted 2 years ago #

    Mores,
    please activate a normal theme and template page. it looks like your not calling the default WordPress footer (which enqueues scripts within plugins that "lazy load" to enhance performance). Your problem has nothing to do with the PHP shorthand tags.

  11. mores
    Member
    Posted 2 years ago #

    Awesome!
    I was missing wp_footer.php in my footer.
    Thanks, Seth ... matic(?)

    :)

    Now all I need to do is make it fit in my theme :)

  12. Seth Carstens
    Member
    Plugin Author

    Posted 2 years ago #

    yeah, sethmatics is my company, and I do go by Seth ;)

  13. anurag_aadi
    Member
    Posted 1 year ago #

    i am facing same problem.........

  14. Seth Carstens
    Member
    Plugin Author

    Posted 1 year ago #

    which problem, several issues were discussed here?

  15. anurag_aadi
    Member
    Posted 1 year ago #

    http://designwordpress.net/avtech/?page_id=57

    here the problem, can u check this

  16. Seth Carstens
    Member
    Plugin Author

    Posted 1 year ago #

    like others, you are not properly calling the wp_footer function. This means any plugins that use it to enqueue javascript in the footer are going to fail on your website.

    Please read this entire support thread, note that you theme MUST use the following function somewhere in the footer:
    http://codex.wordpress.org/Function_Reference/wp_footer

    This will enqueue the following file which you should find when viewing the source of your website:
    jquery.ad-gallery.js

    Any theme developed by a WordPress theme professional would have this already... I would be very concerned if your theme doesn't already have this.

  17. anurag_aadi
    Member
    Posted 1 year ago #

    will i missed anything

  18. anurag_aadi
    Member
    Posted 1 year ago #

    look its still not working........
    http://designwordpress.net/avtech/?page_id=57

  19. Seth Carstens
    Member
    Plugin Author

    Posted 1 year ago #

    disable the other gallery plugins you have loaded. I believe they are conflicting and changing the way the SM Gallery plugin is trying to output the gallery. The javascript is now loading properly, but its crashing because the output is not setup correctly.

  20. anurag_aadi
    Member
    Posted 1 year ago #

    there is no other gallery, i have installed

  21. anurag_aadi
    Member
    Posted 1 year ago #

    its working now thanks

  22. Seth Carstens
    Member
    Plugin Author

    Posted 1 year ago #

    I could see from your source code that you had other gallery plugins installed, hopefully removing the other plugins solved your problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.