Conversation
supportI have: WordPress version 6.2.2 Active theme: Twenty Twenty-Three (version 1.1) Current plugin: Latest Post Shortcode (version 11.4.0) PHP version 7.4.33 When I go to edit a page that contains the shortcode, which I couldn’t configure because the button appears nowhere, I get a critical error WSOD. I had entered the bare shortcode, found no button, exited the page to see what I could find out, and when I attempted to edit the page again, the error appeared instead. I can easily reproduced this. I am doing this on a test page that has no links to it, so it’s not disabling my site. The plugin is, of course, disabled. The page I need help with: [ log in to see the link]
Hi, Do you get any errors in the error log? Also, can you provide me with the shortcode you used? For Gutenberg, there is a block you can use, if you type in the editor content /lps or if you search the block like any other block. Could you also attach a screenshot of the page content (if it’s not containing any sensitive data)? Regards, Iulia
There don’t seem to be any new errors in the log.The shortcode is just the bare [latest-selected-content]. I can’t get into that page with the plugin activated. I’m going to create a new page and try to find the block through search again. There’s nothing on the page that I’ve been reporting about, just the shortcode. LATER: Activated the plugin. Added new page. No button anywhere. /lps did not find the block. Block search did not find the block.
I tested and the block is there. Please check this https://imgur.com/a/MJlrzaa I am not entirely sure how you are trying to embed the shortcode in the page content, please give me some details/screenshots.
Turned on DEBUG=true in wp-config.php. Activated plugin. Got a bunch of deprecated and warnings then, and at every step of what followed. Attempted to open the page with the plugin. Got: Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2516 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2517 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2517 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2517 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2560 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3134 Warning : Illegal string offset 'elements' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3140 Warning : Illegal string offset 'display' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3142 Warning : Illegal string offset 'elements' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3176 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3179 Fatal error : Uncaught TypeError: Argument 1 passed to Latest_Post_Shortcode::get_card_output_type_from_args() must be of the type array, string given, called in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3206 and defined in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php:674 Stack trace: #0 /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php(3206): Latest_Post_Shortcode::get_card_output_type_from_args('1') #1 /home1/wildwo10/public_html/nuubr/wp-includes/shortcodes.php(355): Latest_Post_Shortcode::latest_selected_content('1', '', 'latest-selected...') #2 [internal function]: do_shortcode_tag(Array) #3 /home1/wildwo10/public_html/nuubr/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(latest...', 'do_shortcode_ta...', '[latest-selecte...') #4 /home1/wildwo10/public_html/nuubr/wp-includes/class-wp-hook.php(308): do_shortcode('[latest-selecte. in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 674
That’s helpful. I will check and push some changes.
Please check again after upgrading, I think I covered the scenario you are playing with.
The good news: the site doesn’t crash anymore. The not-so-good news: neither /lps nor /LPS nor the block search turns up an LPS block. This is true both in the original page and in a freshly made empty page. Using the shortcode, there is no button or any other way to configure other than adding arguments directly in the shortcode text. Maybe some other plugin is interfering?
I am still not clear how you are trying to use the plugin and in what context, what other block filters you have on your setup. Please send at least some screenshots with the list of allowed blocks in the editor, and the page content. This reply was modified 2 years, 11 months ago by Iulia Cazan .
I seriously apologize – I had no idea that the three blocks the search was showing me, entitled “Overlay Cards”, “Vertical Cards”, and “Horizontal Cards”, were the LPS blocks. I finally clicked on one to see what it was, and was surprised to see my posts. There’s nothing in those names that was a clue to their relation to LPS. But thank you for all the work you put in on the crash problem. I won’t be bothering you any further.
It’s great that you found the blocks. No worries, please reach out if you discover another issue. Have a nice evening! Iulia
Hi, Do you get any errors in the error log? Also, can you provide me with the shortcode you used? For Gutenberg, there is a block you can use, if you type in the editor content /lps or if you search the block like any other block. Could you also attach a screenshot of the page content (if it’s not containing any sensitive data)? Regards, Iulia
There don’t seem to be any new errors in the log.The shortcode is just the bare [latest-selected-content]. I can’t get into that page with the plugin activated. I’m going to create a new page and try to find the block through search again. There’s nothing on the page that I’ve been reporting about, just the shortcode. LATER: Activated the plugin. Added new page. No button anywhere. /lps did not find the block. Block search did not find the block.
I tested and the block is there. Please check this https://imgur.com/a/MJlrzaa I am not entirely sure how you are trying to embed the shortcode in the page content, please give me some details/screenshots.
Turned on DEBUG=true in wp-config.php. Activated plugin. Got a bunch of deprecated and warnings then, and at every step of what followed. Attempted to open the page with the plugin. Got: Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2516 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2517 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2517 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2517 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 2560 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3134 Warning : Illegal string offset 'elements' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3140 Warning : Illegal string offset 'display' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3142 Warning : Illegal string offset 'elements' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3176 Warning : Illegal string offset 'ver' in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3179 Fatal error : Uncaught TypeError: Argument 1 passed to Latest_Post_Shortcode::get_card_output_type_from_args() must be of the type array, string given, called in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 3206 and defined in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php:674 Stack trace: #0 /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php(3206): Latest_Post_Shortcode::get_card_output_type_from_args('1') #1 /home1/wildwo10/public_html/nuubr/wp-includes/shortcodes.php(355): Latest_Post_Shortcode::latest_selected_content('1', '', 'latest-selected...') #2 [internal function]: do_shortcode_tag(Array) #3 /home1/wildwo10/public_html/nuubr/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(latest...', 'do_shortcode_ta...', '[latest-selecte...') #4 /home1/wildwo10/public_html/nuubr/wp-includes/class-wp-hook.php(308): do_shortcode('[latest-selecte. in /home1/wildwo10/public_html/nuubr/wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php on line 674
That’s helpful. I will check and push some changes.
Please check again after upgrading, I think I covered the scenario you are playing with.
The good news: the site doesn’t crash anymore. The not-so-good news: neither /lps nor /LPS nor the block search turns up an LPS block. This is true both in the original page and in a freshly made empty page. Using the shortcode, there is no button or any other way to configure other than adding arguments directly in the shortcode text. Maybe some other plugin is interfering?
I am still not clear how you are trying to use the plugin and in what context, what other block filters you have on your setup. Please send at least some screenshots with the list of allowed blocks in the editor, and the page content. This reply was modified 2 years, 11 months ago by Iulia Cazan .
I seriously apologize – I had no idea that the three blocks the search was showing me, entitled “Overlay Cards”, “Vertical Cards”, and “Horizontal Cards”, were the LPS blocks. I finally clicked on one to see what it was, and was surprised to see my posts. There’s nothing in those names that was a clue to their relation to LPS. But thank you for all the work you put in on the crash problem. I won’t be bothering you any further.
It’s great that you found the blocks. No worries, please reach out if you discover another issue. Have a nice evening! Iulia