WordPress.org

Ready to get started?Download WordPress

Forums

HMS Testimonials
[resolved] Templates (4 posts)

  1. juansandro
    Member
    Posted 11 months ago #

    Hi,

    First of all, I would like to congratulate on great work delivered here. "HMS Testimonials" is just amazing.

    I found a small issue related to templates when using "HMS Testimonials" networked mode. So, I have a couple of websites using the same plugin. When I visit "Templates" page of the widget it shows a certain number of templates, then if i refresh the page or re-visit the same page it adds more and more templates and so on... util the web browser stuck because the list becomes too long...

    http://wordpress.org/plugins/hms-testimonials/

  2. Jeff K
    Member
    Plugin Author

    Posted 10 months ago #

    Wow that is quite the issue. I will look into this today to see what's going on.

    Jeff

  3. Jeff K
    Member
    Plugin Author

    Posted 10 months ago #

    Hi juansandro,

    I just pushed v2.1.6 that fixes this bug. If you update the plugin it will stop creating new templates.

    If you have access to phpMyAdmin, please run the following query on all hms_testimonials_templates tables for your network. By default there are 24 templates and so this will get rid of all but those 24.

    DELETE FROM {prefix}hms_testimonials_templates WHERE id > 24

    I had a bug in the setup.php file where I would grab the current version of the sql tables using get_option and it was updating the version with get_site_option. When it would check if the version was less than 10 (when I added templates), it would create them for you. Since I was using get_option it kept returning a blank value which isn't greater than 10 so every page load it saved 24 more templates. Yikes!

    WordPress automatically works between the two (get_option & get_site_option) in single site mode which is why this bug was not caught before.

    Jeff

  4. juansandro
    Member
    Posted 10 months ago #

    Thank you for answering and resolving so quickly.

    Again, great work!

    Regards.

Reply

You must log in to post.

About this Plugin

About this Topic