Context: I have 2 WP blogs (WWW & AMF, with ActivityPub running for 2+years.
I reinstalled the Friends plugin on WWW first and tried RSS subscriptions. No problem, including with AMF. See here.
Installed Friends on AMF too, and tried to connect as Friend (acquaintance as default role on both blogs).
The RSS subscription process worked, the friendship request was sent from AMF to WWW, WWW validated. After 24h, the status is still “pending”…
Main problem: the way content was generated was not looking good, with a lot of blank space between blocks… So tried to play with various options, modifying the parser, requesting full content (option appears inconsistently, both in Front & Back office, and still can’t find how to have it or not…).
I changed the parser to “ActivityPub” as both support it… And I got an email stating the following:
WordPress caught an error with one of your plugins, Friends.
Error Details
=============
An error of type E_ERROR was caused in line 174 of the file /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php. Error message: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php:174
Stack trace:
#0 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php(174): array_merge()
#1 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(308): Friends\Feed_Parser_ActivityPub->friends_activitypub_metadata()
#2 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php(239): apply_filters()
#4 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php(1225): Friends\Feed_Parser_ActivityPub->update_feed_details()
#5 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(308): Friends\Feed_Parser_ActivityPub->admin_show_update_avatar()
#6 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#7 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#8 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-content/plugins/friends/templates/admin/edit-friend.php(19): do_action()
#9 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-includes/template.php(785): require('...')
#10 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-content/plugins/friends/includes/class-gamajo-template-loader-1-4-0.php(188): load_template()
#11 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-content/plugins/friends/includes/class-gamajo-template-loader-1-4-0.php(99): Gamajo_Template_Loader_1_4_0->locate_template()
#12 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-content/plugins/friends/includes/class-admin.php(1180): Gamajo_Template_Loader_1_4_0->get_template_part()
#13 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(308): Friends\Admin->render_admin_edit_friend()
#14 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#15 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /srv/data/web/vhosts/amf.didiermary.fr/htdocs/wp-admin/admin.php(259): do_action()
#17 {main}
thrown
BTW, the site was absolutely not broken, but the page “Edit User / Friend Settings” was as it just showed the word “Avatar” on top.
Going back to SimplePie (and refreshing/purging) solved the problem.
Quick note: to have the Friends pages work on both blogs, I had to refresh (in Friends FO or BO) and/or purge all caches (W3TC) multiple times while testing till I got things working…
PS: have the error solved by 1.1.1 but how do I update?
Sincerely
DJM
If I import to Post Type: Blogpost it generates the post with the Video and Description like here: https://wp.letitcook.com/ratatouille-einfach-schnell-und-lecker
All good..
If I select Post Type: Recipe (which is actually cool that it appears), it generates a Recipe page with only an image and no description from youtube. When I select Recipe, the Post Format dropdown disappears. So no chance to select video.
It looks like this: https://wp.letitcook.com/recipes/linguini-mit-pesto
I’m pretty sure I would have to modify the parser part of this plugin to get desired functionality. Problem is I have no idea where to start looking. If anybody could point me in the right direction or has done something similar I would highly appreciate any guidance.
Cheers!
]]>Fatal error: Uncaught PHPParser_Error: Syntax error, unexpected T_OBJECT_OPERATOR on line 1 in /home/bgpsn7pz/public_html/wp-content/plugins/wp-testing/vendor/nikic/php-parser/lib/PHPParser/Parser.php:1098 Stack trace: #0 /home/bgpsn7pz/public_html/wp-content/plugins/wp-testing/src/Model/Compilable.php(229): PHPParser_Parser->parse('<?php - ->0.5&&...') #1 /home/bgpsn7pz/public_html/wp-content/plugins/wp-testing/src/Model/Compilable.php(155): WpTesting_Model_Compilable->substitute() #2 /home/bgpsn7pz/public_html/wp-content/plugins/wp-testing/src/Model/Formula.php(69): WpTesting_Model_Compilable->compile() #3 /home/bgpsn7pz/public_html/wp-content/plugins/wp-testing/src/Model/Passing.php(295): WpTesting_Model_Formula->isTrue() #4 /home/bgpsn7pz/public_html/wp-content/plugins/wp-testing/src/Doer/TestPasserAction/GetResults.php(63): WpTesting_Model_Passing->buildResults() #5 /home/bgpsn7pz/public_html/wp-content/plugins/wp-testing/src/Doer/TestPasser.php(79): WpTesting_Doer_TestPasserAction_GetResults->renderContent(' \r in /home/bgpsn7pz/public_html/wp-content/plugins/wp-testing/vendor/nikic/php-parser/lib/PHPParser/Parser.php on line 1098
Additional info:
Wordpress v 5.3.2
PHP v 7.2.26
July 1, 2019 7:55 am [Error] DOM parser failed. URL:/biography/, Request:a:0:{} ( Memory:13.39Mb CPU:0.00% )
This is one example of what’s showing inside the logs, it shows in every page, including the homepage (“URL:/”).
I’m 100% sure it’s not redirecting (tested with chrome dev tools network tab and it’s a 200 response).
I looked into your website help section but it only says to confirm it’s a redirect issue. There’s no information on what to do in case it’s not.
]]>Just want to inform you that the update via WP CLI does not work.
There is a parser error: “PHP Parse error: syntax error, unexpected ‘list’ (T_LIST), expecting identifier (T_STRING) in /var/www/wp-content/plugins/safe-redirect-manager/inc/classes/class-srm-wp-cli.php on line 19
Note: list is a reserved term (https://github.com/wp-cli/extension-command/blob/master/src/Plugin_Command.php#L1051)
Best regards,
WBW
this has severely disrupted the formatting of the text, after importing, the text in the posts looks very squashed together as usually double line breaks would be converted to paragraph tags, but as they are now single line breaks they are interepreted as br tags instead.
does anyone know of a way to fix this issue?
both installations of wordpress are v4.9.6
]]>A parser-blocking, cross site (i.e. different eTLD+1) script, https://html-links.com/banners/12752/html03.asp?ref=842697&site=12752&type=html&hnb=3&js=1&subid=Wordpress4.9.5-Plugin1.9.5-1und1, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
Has anyone had this problem as it seems something is blocking the code.
]]>Another issue I’ve faced with is stylesheet parameters:
WP generates links like:
<link rel=”stylesheet” id=”id” href=”path_to file” type=”text/css” media=”all”>
Plugin with Fast simple HTML parser doesn’t merge this links with id parameter
Plugin with Standard full HTML parser doesn’t merge links even without id
And libxml HTML parser leads to blank page at all
Upd: have understood that ids where added for access to each link tag separately and merging files together will ruin this ability, so standard flow is to leave this links untouched. And solution for me is to remove ids by myself
And you still can add a feature to remove ids if needed (optional switch)