WordPress.org

Ready to get started?Download WordPress

Forums

TBTestimonials
Fatal error tb-testimonials.php on line 881 when FORCE_SSL_ADMIN is TRUE (25 posts)

  1. WebEndev
    Member
    Posted 3 years ago #

    As soon as I enable SSL in wp-config using define('FORCE_SSL_ADMIN', true);, I get these errors:
    Fatal error: Unsupported operand types in C:\xxx/xxx/xxx\wp-content\plugins\tb-testimonials\tb-testimonials.php on line 881

    Warning: loader_default.gif is not a valid file or url in C:\wp-content\plugins\tb-testimonials\tb-testimonials.php on line 930

    I do not get them with define('FORCE_SSL_LOGIN', true);

    Am running Genesis Framework 1.6.1 and running on localhost (XAMPP). I don't get these errors when TBTestimonials is disabled.

    Thanks

    http://wordpress.org/extend/plugins/tb-testimonials/

  2. Travis Ballard
    Member
    Plugin Author

    Posted 3 years ago #

    Hey WebEndev, I will have to get back to you on this and get a fix out for everyone. Thanks for reporting it! Will let you know what I come up with as soon as possible.

  3. multimule
    Member
    Posted 3 years ago #

    I have exactly the same issue, although the warning comes first and then the fatal error. Also I'm "online", so visiting my page via http://example.com works but https://example.com raises this error.
    I tried to disable the loading image (it has no use to me anyway as you say in the description) but it didn't work.

    I'm looking forward to your new release, which will hopefully come out soon. ;-)

  4. multimule
    Member
    Posted 3 years ago #

    Does anyone have a workaround that enables me to continue using TB Testimonials on my https website?

  5. Travis Ballard
    Member
    Plugin Author

    Posted 3 years ago #

    Hey bud, I just tried looking into it quickly but don't have SSL configured locally so I'll have to play with it over the weekend and get back to you on it.

  6. Jan van Dank
    Member
    Posted 3 years ago #

    Hi, "multimule" here. Thank you for looking into it. I hope you find a solution because I don't want to miss your great plugin!

  7. Jan van Dank
    Member
    Posted 3 years ago #

    Any progress on this? Please just ask me if you need more information!

  8. Jan van Dank
    Member
    Posted 2 years ago #

    Travis, sorry for bumping but no news on this?

  9. Travis Ballard
    Member
    Plugin Author

    Posted 2 years ago #

    No nothing as of yet I've got my hands tied up on a project at the moment. Shoot me your email using the contact form on travisballard.com and I'll let you know as soon as I get something. Maybe we can work together on fixing it for you.

  10. Jan van Dank
    Member
    Posted 2 years ago #

    Thanks! I've sent you an e-mail.

  11. Jan van Dank
    Member
    Posted 2 years ago #

    Did you receive my email? Maybe it was marked as spam because I included the Url I'm referring to.

  12. Jan van Dank
    Member
    Posted 2 years ago #

    I just tried the new version and it still produces an error. Though it changed to:
    "https://www.example.com/wp-content/plugins/tb-testimonials/inc/i/loaders/loader_default.gif"

    Just this, in fact it's the source code! Every page I visit with https displays this. No matter if I enable or disable the preloader, change the graphic url etc.

    Side note: Something went horribly wrong. After installing the new version I enabled the preloader for testing purposes and all my pages (admin page etc.) displayed the text above - even without https. This caused me a lot of unnecessary trouble as I had to delete the plugin folder and manually delete the settings... to get my website work again...

  13. ivycat
    Member
    Posted 2 years ago #

    I'm having this same issue. It's not the most ideal fix, but I'm simply commenting out line 947(ish):

    trigger_error( sprintf( '%s is not a valid file or url', $url ), E_USER_WARNING );

    Not sure why it doesn't have some checks to prevent the entire script from dying. Missing the image doesn't seem to be a kill error.

    I'll check the logic in the whole tbtestimonials_prepare_preloader sometime in the next few days (if I don't forget, lol) and submit a fix to Travis if I find an easy one.

  14. Jan van Dank
    Member
    Posted 2 years ago #

    @ivycat
    That would be great! I finally want to be able to use my secured website. ;-)

  15. Travis Ballard
    Member
    Plugin Author

    Posted 2 years ago #

    Jan van Dank: When you upgrade to version 1.5.8 that was just released, will you let me know if this issue is solved? Thanks and sorry that I didn't get it out in the last release.

  16. Travis Ballard
    Member
    Plugin Author

    Posted 2 years ago #

    Also, thanks for your help with this ivycat

  17. ivycat
    Member
    Posted 2 years ago #

    Also, thanks for your help with this ivycat

    Quite welcome; we're happy to help. :)

  18. Jan van Dank
    Member
    Posted 2 years ago #

    Travis,
    I just updated but unfortunately it didn't fix the issue. Well the "not found" error is gone but instead I'm getting just a blank page and an error_log:

    Unsupported operand types in XXX/wp-content/plugins/tb-testimonials/tb-testimonials.php on line 921

    ...which is:
    $preloaders += $preloader_obj;

    I'm not totally sure but I think I got this before updating as well. I hope you know what's going on there... maybe it's because of a certain option in php.ini? Just guessing.

    Anyway, thank you both for helping though!

  19. Travis Ballard
    Member
    Plugin Author

    Posted 2 years ago #

    ah alright, yeah ivycat pointed that out in another thread, I'll fix it and release a bug fix for you here later tonight.

  20. Jan van Dank
    Member
    Posted 2 years ago #

    I'll fix it and release a bug fix

    Thanks Travis, that would be great!

  21. Travis Ballard
    Member
    Plugin Author

    Posted 2 years ago #

    Alright, 1.5.9 was committed, you should get an update notice here shortly. Sorry I didn't get it to you on Friday, the weekend got in the way.

  22. Jan van Dank
    Member
    Posted 2 years ago #

    No problem Travis...

    I just updated it and I'm still getting the same error as with 1.5.8 in line 921. ;-)

    I guess the line you've added at 930 is needed at 921 as well?!
    if( is_object( $preloader_obj ) )

    ...and - I'm in no way a PHP expert - aren't a few "{}" missing there?

  23. Jan van Dank
    Member
    Posted 2 years ago #

    OK, I added some "{}" to the "if"s in the tbtestimonials_register_preloaders() function and changed line 921 as 930 and now everything finally seems to work...

    Thanks for your help and great plugin! :)

  24. John Ryan Roxas
    Member
    Posted 2 years ago #

    Hi Guys!
    What I did is I removed the semi colon on the line statement 920.

    if( $preloader_obj = tbtestimonials_prepare_preloader( $loader ) ); to

    if( $preloader_obj = tbtestimonials_prepare_preloader( $loader ) )

    and it works great. Hope this helps.

  25. Travis Ballard
    Member
    Plugin Author

    Posted 2 years ago #

    Good catch Ryan. That will be fixed in the next update which will probably be tomorrow or later tonight depending on when i finish these enhancements.

    Jan Van Dank, maybe this will resolve it for you finally as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic