Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter ratherloopy

    (@ratherloopy)

    Looks like this was caused by the plugin “Unlimited Addon For Elementor” (A collection of quality addons or modules for use in Elementor page builder). After deactivating the plugin, the counter widget works as intended.

    Thread Starter ratherloopy

    (@ratherloopy)

    It sounded like your instructions were to restore a full backup onto a different WP installation which is useful information, but did not seem to address my issue which asked how to restore a single page from a backup set. Feel free to mark the issue solved if you feel that would be appropriate.

    Thread Starter ratherloopy

    (@ratherloopy)

    Thank you for that. I went ahead and just restored the earlier backup, but will keep these instructions for future reference.

    Thread Starter ratherloopy

    (@ratherloopy)

    Ah. I was seeing the theme in Dashboard->Themes so I assumed it was from WP/themes, but I probably did import it myself at some point (it’s hard to keep up when everything’s new).

    My question, though, was “can you not work on a theme/page with different tools?” but from your reply, I guess I can infer that it should be possible to work on a site theme with multiple tools. I guess I’ll start over with a theme that I know is from the official repository (or whatever gets it on the WB site).

    Thanks much.

    Thread Starter ratherloopy

    (@ratherloopy)

    Update: I kludged it in the page’s CSS by chopping off the text areas at a preset length and hiding the overflow.

    .page-id-2 .lp-block-text{
    height: 190px;
    overflow: hidden;
    }

    It doesn’t look great that the text is artlessly just chopped off without a trailing ellepsis, but I’ll see if I can figure out the CSS to overlay an opacity fade over the last 10% or so of the text blocks.

    It ain’t perfect, but it’s better than it was.

    Fluida-Featured-Icon-Blocks-Kludge-2022-10-30-143545

    Thread Starter ratherloopy

    (@ratherloopy)

    Now that I look a little closer, the “non-object” error is just a Notice and shows up on nearly every screen now. Your modification fixed that one.

    The fatal error (below – which I mistook for a longer version of the Notice) is actually complaining about “Call to undefined function get_current_screen()” and occurs every time I go to Appearance->Customize. It wasn’t doing that before, so I dunno. I can live with it but I may come back and work on it another time (I’m knackered). I never met a PHP error I couldn’t fis!

    Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/cmayo/wp2.ratherloopy.com/wp-content/plugins/code-snippets/php/snippet-ops.php(505) : eval()'d code:5 Stack trace: #0 /home/cmayo/wp2.ratherloopy.com/wp-includes/class-wp-hook.php(309): hide_pages_by_title(' AND posts.post...') #1 /home/cmayo/wp2.ratherloopy.com/wp-includes/plugin.php(235): WP_Hook->apply_filters(' AND posts.post...', Array) #2 /home/cmayo/wp2.ratherloopy.com/wp-includes/class-wp-query.php(2653): apply_filters_ref_array('posts_where', Array) #3 /home/cmayo/wp2.ratherloopy.com/wp-includes/class-wp-query.php(3613): WP_Query->get_posts() #4 /home/cmayo/wp2.ratherloopy.com/wp-includes/class-wp-query.php(3745): WP_Query->query(Array) #5 /home/cmayo/wp2.ratherloopy.com/wp-includes/class-wp-customize-manager.php(985): WP_Query->__construct(Array) #6 /home/cmayo/wp2.ratherloopy.com/wp-includes/class-wp-customize-manager.php(1088): WP_Customize_Manager->find_changeset_post_id('7cfbe65d-72cb-4...') #7 /home/cmayo/wp2.ratherloopy.c in /home/cmayo/wp2.ratherloopy.com/wp-content/plugins/code-snippets/php/snippet-ops.php(505) : eval()'d code on line 5
    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    • This reply was modified 2 years, 4 months ago by ratherloopy.
    • This reply was modified 2 years, 4 months ago by ratherloopy.
    Thread Starter ratherloopy

    (@ratherloopy)

    Just a quick addendum. The snippet started throwing a PHP error at WP Dashboard->Appearance->Customize

    Notice: Trying to get property 'id' of non-object in /home/user/wp2.dolmain.com/wp-content/plugins/code-snippets/php/snippet-ops.php(505) : eval()'d code on line 6

    I’ll update if/when I get it figured out.

    • This reply was modified 2 years, 4 months ago by ratherloopy.
    • This reply was modified 2 years, 4 months ago by ratherloopy.
    • This reply was modified 2 years, 4 months ago by ratherloopy.
    Thread Starter ratherloopy

    (@ratherloopy)

    [Marking as Solved]

    Thread Starter ratherloopy

    (@ratherloopy)

    10-4

    Thread Starter ratherloopy

    (@ratherloopy)

    Wow! That is so clever, and I love that it’s so easy to turn the filter off and on in the plugin! Honestly, I’m an oldschool PHP developer (procedural only) and am kind of excited about WP’s PHP integration and customization potential, and am looking forward to digging into that at some point if I ever learn enough about WP’s operation to start experimenting.

    Thanks very much for the snippet! (and the plugin is pretty cool, too! Cheers!)

    • This reply was modified 2 years, 4 months ago by ratherloopy.
    Thread Starter ratherloopy

    (@ratherloopy)

    Thanks very much for those tips, @pidengmor.

Viewing 11 replies - 1 through 11 (of 11 total)