Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Michael Nelson

    (@mnelson4)

    Thanks for reporting @wp-dummie sorry it’s having trouble.

    Which widget is it you’re using? And is this problem on the front end of your website or in printouts?

    Plugin Author Michael Nelson

    (@mnelson4)

    Ya sorry @wp-dummie I’ve tried using the BAM theme and can’t find that widget you’re referring to. Can you please share with me how you created that widget and where it’s being displayed? Then I’ll be able to debug further.

    Thread Starter WP-Dummie

    (@wp-dummie)

    Dear Michael,
    thank you for your answer. I will take screenshots.
    Unfortunately, now I have an additional problem. I moved the installation to the final server and got a serious problem (Both installations are at the same hoster but on different accounts). After I disabled the plugin by renaming it, everything was fine. Here is the error message from WordPress (as an email to admins):

    Since the site is not yet live, I have replaced the relevant data with #
    
    Hello!
    
    Since WordPress 5.2, there is a built-in feature that detects when a plugin or theme causes a fatal error on your site and notifies you with this automated email because of it.
    
    In this case, WordPress has caught an error in one of your plugins, Print My Blog.
    
    First, visit your website (https://#/) and check it for visible problems. Next, visit the page where the error occurred (https://#/wp-login.php?redirect_to=https://#/wp-admin%2F&reauth=1) and check for visible issues.
    
    Please contact your hosting company for assistance in investigating this issue further.
    
    If your website seems to be faulty and you can no longer access your dashboard as usual, WordPress now has a special ?recovery mode“. This way you can safely log into your dashboard and investigate further.
    
    https://#/wp-login.php?action=enter_recovery_mode&rm_token=………
    
    To protect your website, this link will expire in 1 day. But don‘t worry: a new link will be emailed to you if the error reoccurs after the deadline.
    
    If you are looking for help with this issue, you may be asked for some of the following information:
    WordPress version 5.7
    Current theme: # (version 1.0) of https://www.ads-software.com/themes/bam/
    Current plugin: Print My Blog (version 2.9.9)
    PHP version 7.4.14
    
    Error details
    ==============
    An error of type E_ERROR was caused on line 59 of file /www/htdocs/#/#/wp-content/plugins/print-my-blog/src/PrintMyBlog/controllers/PmbInit.php. Error message: Uncaught Error: Class ?PrintMyBlog\controllers\PmbPrintPage‘ not found in /www/htdocs///wp-content/plugins/print-my-blog/src/PrintMyBlog/controllers/PmbInit.php:59
    Stack trace:
    #0 /www/htdocs/#/#/wp-includes/class-wp-hook.php(292): PrintMyBlog\controllers\PmbInit->init(?‘)
    #1 /www/htdocs/#/#/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #2 /www/htdocs/#/#/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /www/htdocs/#/#/wp-settings.php(560): do_action(?init‘)
    #4 /www/htdocs/#/#/wp-config.php(117): require_once(?/www/htdocs/w01...‘)
    #5 /www/htdocs/#/#/wp-load.php(37): require_once(?/www/htdocs/w01...‘)
    #6 /www/htdocs/#/#/wp-login.php(12): require(?/www/htdocs/w01...‘)
    #7 {main}
     thrown
    
    Translated with www.DeepL.com/Translator (free version)
    • This reply was modified 3 years, 8 months ago by WP-Dummie.
    Thread Starter WP-Dummie

    (@wp-dummie)

    Dear Michael,
    I haven’t looked to see if the widget looks “ugly” in print. It looks “ugly” in the frontend.
    I could live with it if it wasn’t so nice in print, but it has to look good in frontend ??

    Here is a screenshot of the widget area in the backend.
    https://gross-im-netz.com/images/widgets.jpg
    Do you need more informations from me?

    Have a nice weekend!

    Thread Starter WP-Dummie

    (@wp-dummie)

    Dear Michael,
    I’m desperately waiting for replies …
    Greetings
    WP-Dummie

    • This reply was modified 3 years, 8 months ago by WP-Dummie.
    Plugin Author Michael Nelson

    (@mnelson4)

    Hi @wp-dummie, sorry for the delay but I didn’t check emails regarding this over the weekend and got some paid work done this morning.

    Thanks for the debug info on that error.

    What version of PHP are you on? The error indicates either an old version of PHP or somehow the files didn’t get copied over properly. If you’re on PHP 7 or higher, please check that the file wp-content/plugins/print-my-blog/src/PrintMyBlog/controllers/PmbPrintPage.php actually exists.

    Thread Starter WP-Dummie

    (@wp-dummie)

    Dear Michael,
    thank you for your follow-up.
    I talked to a friend on the phone earlier, whom I always ask when I’m stuck. He also asked about the PHP version: old and new domain have PHP 7.4.
    Then we looked for https, both have it too.
    He suggested that I just reinstall the plugin and that worked (but it irritated that the settings were still there, I prefer if the entries disappear from the database when I delete a plugin …).
    He also said that I could of course change the widget header via CSS again. I had been irritated that the new style was in a different CSS file.
    I did that and now everything is fine and I’m very happy again with your great plugin!
    Happy greetings
    WP-Dummy

    Translated with https://www.DeepL.com/Translator (free version)

    • This reply was modified 3 years, 8 months ago by WP-Dummie.
    • This reply was modified 3 years, 8 months ago by WP-Dummie.
    Plugin Author Michael Nelson

    (@mnelson4)

    Glad you’ve made progress. Hey I’m reproducing the problem with that BAM widget, but it’s tricky to solve. I’ll have another update soon…

    Plugin Author Michael Nelson

    (@mnelson4)

    Aha, I think I nailed it down.
    It turns out BAM and Print My Blog are using something called jQuery UI, but we seem
    to rely on different versions of it, and Print My Blog’s version was winning which meant BAM’s widget lost and then looked terrible.

    So I’ve changed my code around to play more nicely. Would you like to try the fix on your test site @wp-dummie?

    If so, here’s how:
    1. Download the new version from here: https://github.com/mnelson4/printmyblog/archive/BUG/jquery-conflict.zip
    2. Go to your WordPress dashboard, click plugins, then “add new”, then “upload” and select the zip file you just downloaded
    3. Deactivate the previous version Print My Blog
    4. Activate the new version of Print My Blog

    BAM’s widgets should no longer be affected, and when you use Print My Blog and are choosing a date range to print, the datepicker should look fine too.

    Please let me know how it goes or if you don’t have time to test it anytime soon.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Widget header becomes ugly’ is closed to new replies.