Bug in parse.php
-
Ciao Marco,
Too bad you are not really improving this amazing plugin, it has a lot of potential, thanks for the great work ganyway ??
I had all these warnings that prevented from updating the postmeta because there is apparently no post $o to be updated : :
[02-Jul-2021 03:10:34 UTC] PHP Notice: Undefined variable: o in /home3/eventtf0/public_html/mycommunity/wp-content/plugins/telegram-bot/parse.php on line 64 [02-Jul-2021 03:10:34 UTC] PHP Notice: Trying to get property 'ID' of non-object in /home3/eventtf0/public_html/mycommunity/wp-content/plugins/telegram-bot/parse.php on line 64
So I added these 2 lines and now it works better:
$plugin_post_id = telegram_getid( $USERID ); if ( $plugin_post_id ) $o = get_post($plugin_post_id);
I am not a developper so not sure it’s good coding but at least it works =)
Cheers!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug in parse.php’ is closed to new replies.