thanks for your post, and sorry for the trouble.
No, sorry, I don’t know what could be causing this. Make sure that your theme is properly evaluating Shortcode in all its template files.
Just curious: Why are you using such old and outdated versions of WordPress and TablePress? (This should however not influence this problem.)
Strangely it is only working on homepage.
Good question due to lower priority project and site over another flagship site, with update comes maintenance work which time and focus on wrong project. A major part is also due to the theme not fixing one bug which is essential to be fixed before we can update the theme. Until theme can’t be updated we don’t want to update major things such as wp and along with it until fixed. Theme is pro builder from theme.co, still awaiting for the small bug but huge impact for us to be fixed stuck in a bigger release, no minor release fixes there.
sorry to hear that you are having problem with the theme. If they don’t fix it, you might want to look into switching themes. Right now, you are really falling behind on WordPress development, so that it will only be more work in the future.
And just to be sure: Has the Shortcode worked before and this problem only started recently? Or has this never worked before at all?
@tobiasbg They will soon after 2 more beta releases release the update but yes agree.
But we I did test on staging updating theme but not WP and it still didn’t work with current latest version. Meaning it’s not the Theme.
It started recently but not sure when. It worked before yes.
Do other plugin’s Shortcodes work in these places?
Then, can you please try again after temporarily deactivating all other plugins and after switching to a WordPress default theme like Twenty Twenty? That way, we can find what’s causing this.
@tobiasbg Are you using add_shortcode or apply_shortcode?
@tobiasbg seems to be wp core as it is not resolved by disabling all plugins
TablePress uses both
apply_shortcodes(), as they are used for different purposes.
add_shortcode()is used to register the
do_shortcode(), for which that is an alias function) is used to evaluate other Shortcodes in table cells.
I highly doubt that this is a problem in WordPress Core. Many, many more sites would then show this problem, and not just yours.
It could also be a problem with PHP on your server, e.g. if regular expression parsing in it is somehow broken.
Therefore, please try if other Shortcodes work. Also, please check the server error log files. And finally, please try with everything updated. If it’s not yet possible to update your main site, maybe set up a test site with the same versions of everything (but installed from a fresh download) on the same server.
This plugin’s Shortcode work just fine https://wordpress.org/plugins/shortcoder/
Couldn’t find any worrying in the log that’s causing this but see the two here:
Just a plugin using a array instead of a string calling
[Tue Nov 15 00:14:19.232370 2022] [proxy_fcgi:error] [pid 9588:tid 140445765957376] [client 127.0.0.1:26656] AH01071: Got error 'PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /mnt/data/home/example.cloudwaysapps.com/example/public_html/wp-includes/class-wp-query.php on line 779',
[Mon Nov 14 08:54:59.952469 2022] [proxy_fcgi:error] [pid 11619:tid 140445371500288] [client 127.0.0.1:48064] AH01071: Got error 'PHP message: objectcache.error: Failed to execute<code>SET</code>commandPHP message: objectcache.error: read error on connection to tcp://127.0.0.1:6379PHP message: objectcache.error: Failed to execute<code>GET</code>commandPHP message: objectcache.error: read error on connection to tcp://127.0.0.1:6379'
- You must be logged in to reply to this topic.