-
AuthorPosts
-
April 3, 2023 at 4:09 pm #12726jonworth-cbrParticipant
Dear Aakash,
The Super RSS Reader PRO is doing the job just as I need it, but with one problem.
When I try to set filter rules, a popup opens – with this URL:
https://crossborderrail.trainsforeurope.eu/wp-admin/admin-ajax.php?action=srr_filter_editorAnd that then gives:
There has been a critical error on this website.This is the error log that is produced:
[03-Apr-2023 10:33:37 UTC] PHP Warning: Attempt to read property "id" on null in /home/XXXXXXX/public_html/WP-DIRECTORY/wp-admin/includes/template.php on line 2134 [03-Apr-2023 10:33:37 UTC] PHP Warning: Attempt to read property "post_type" on null in /home/XXXXXXX/public_html/WP-DIRECTORY/wp-admin/includes/template.php on line 2135 [03-Apr-2023 10:33:37 UTC] PHP Warning: Attempt to read property "id" on null in /home/XXXXXXX/public_html/WP-DIRECTORY/wp-includes/functions.php on line 7112 [03-Apr-2023 10:33:37 UTC] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/XXXXXXX/public_html/WP-DIRECTORY/wp-content/plugins/block-options/includes/class-editorskit-block-assets.php:202 Stack trace: #0 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-content/plugins/block-options/includes/class-editorskit-block-assets.php(202): method_exists() #1 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-includes/class-wp-hook.php(308): EditorsKit_Block_Assets->filter_admin_assets() #2 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #3 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-admin/includes/template.php(2143): do_action() #5 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-content/plugins/super-rss-reader-pro/pro/keyword-filtering/index.php(56): iframe_header() #6 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-includes/class-wp-hook.php(308): SRR_Keyword_Filtering::filter_editor() #7 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #8 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /home/XXXXXXX/public_html/WP-DIRECTORY/wp-admin/admin-ajax.php(188): do_action() #10 {main} thrown in /home/XXXXXXX/public_html/WP-DIRECTORY/wp-content/plugins/block-options/includes/class-editorskit-block-assets.php on line 202
I am using PHP version 8.2, but the same error crops up in PHP version 8.1 as well.
Might you know what is causing this?
Thanks!
April 3, 2023 at 11:31 pm #12730Aakash ChakravarthyKeymasterHi Jon,
Thanks for using Super RSS Reader – PRO.
The log indicates that the error is observed in the plugin “block-options”. You can find the exact source file and line number below.
[03-Apr-2023 10:33:37 UTC] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/XXXXXXX/public_html/WP-DIRECTORY/wp-content/plugins/block-options/includes/class-editorskit-block-assets.php:202
To test this, you can temp deactivate this plugin and load the filter designer. It should work.
I would suggest checking this issue with “block options” team regarding the issue at line 202 in class-editorskit-block-assets.php.Thanks,
AakashApril 3, 2023 at 11:43 pm #12731jonworth-cbrParticipantHmmm, yes, deactivating that works.
Although I must say I am a bit confused as to why Super RSS Reader – PRO is the first plugin that has caused that issue with block-options.
Anyway, I can live without block-options, so it’s all OK 🙂 Problem solved – for me anyway.
But now this works… there is one more thing!
Would there be any way to add a filter for <pubDate> in Super RSS Reader – PRO? Basically allowing feed options to be constrained by date? I am using your plugin as a kind of quasi live blog – and having a date filter would be super useful!
April 3, 2023 at 11:51 pm #12732Aakash ChakravarthyKeymasterHi Jon,
The filter designed window uses the function “iframe_header” which is modified by that plugin. Hence the error.
Regarding filter by date, the requirements can get very complex. You can use PHP code to filter items based on any property of the feed item using “hooks”.
Super RSS Reader PRO has hooks which you can tap into and modify. I’ll document this and update you.
Thanks,
AakashApril 4, 2023 at 12:32 am #12733jonworth-cbrParticipantHi Aakash,
I am not sure how general it is, but RSS feeds from WordPress have a date tag like this:
<pubDate>Wed, 15 Mar 2023 12:20:55 +0000</pubDate>And from Mastodon like this
<pubDate>Mon, 03 Apr 2023 18:01:05 +0000</pubDate>So simply a “all items that have pubDate that contains 03 Apr 2023” would be perfectly adequate for my purposes!
Thanks!
April 4, 2023 at 11:19 pm #12735Aakash ChakravarthyKeymasterHi Jon,
Yes, I agree but w.r.t date, there could be varied requirements from different users like “timerange”, dates greater than x, lesser than x, weekdays, weekends and the list goes.
Hence I left it upto the users to decide how they want. It is easy to do programtically than providing complex options.
It might be non-intutive, but most users won’t consume this filter.
I’ll write and share the PHP code which you can use by this weekend?
Please let me know the exact requirement, I can consider that before writing the logic.
Thanks,
AakashApril 17, 2023 at 7:09 pm #12797jonworth-cbrParticipantDear Aakash,
Sorry for the slow reply.
All I need is to be able to filter a feed by a calendar day – something simply like “03 Apr 2023”. That would work perfectly!
Many thanks!
Jon
-
AuthorPosts
- You must be logged in to reply to this topic.