Tagged: gunter
-
AuthorPosts
-
December 14, 2021 at 5:14 am #1332695
Hi – I have long used the rss feed capability to trigger mailchimp to send an email to subscribers when a new blog post is published on my site. Sometime between Nov 17 and today that functionality broke. I am theorizing that it was either the switch to PHP 8 or the update to Enfold 4.8.8 which triggered this.
If you go to http://www.thomashenthorne.com/rss or http://www.thomashenthorne.com/feed you see this error:This page contains the following errors:
error on line 46 at column 60: Opening and ending tag mismatch: description line 44 and title
Below is a rendering of the page up to the first error.
Thomas Henthorne https://www.thomashenthorne.com Marin Real Estate: Find Marin homes for sale from your trusted Marin Realtor Sun, 12 Dec 2021 22:24:00 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.2 https://i1.wp.com/www.thomashenthorne.com/wp-content/uploads/2016/02/cropped-Thomas-Henthorne-Top-Marin-Real-Estate-Agent.jpg?fit=32%2C32&ssl=1 Thomas Henthorne https://www.thomashenthorne.com 32 32 94920035 Marin County Real Estate Market Report December 2021 | Latest News https://www.thomashenthorne.com/marin-county-real-estate-market-news-december-2021/ https://www.thomashenthorne.com/marin-county-real-estate-market-news-december-2021/#respond Sun, 12 Dec 2021 22:21:42 +0000 https://www.thomashenthorne.com/?p=17325- This topic was modified 3 years ago by goldengate415.
December 14, 2021 at 5:24 am #1332699Mystery solved… this a PHP 8 problem. I downgraded the site to PHP 7.4 and the RSS feed came back.
Looks like there’s some code in my child functions.php which is causing problems.
More info in private content.Thanks
RobDecember 14, 2021 at 1:04 pm #1332747Hi,
Adding your code to my function.php the only thing I see are the ” ‘ “.
I modified the code to get a valid syntax on my install (see below).
Can you try that.What is line 55 in your code above ?
Best regards,
GünterDecember 14, 2021 at 4:41 pm #1332816Hi Günter, thanks for your response!
Line 55 is:
$content = ‘<div>’ . get_the_post_thumbnail( $post->ID, array( ‘width’=>300, ‘height’=> 300 ), array( ‘style’ => ‘margin-bottom: 15px;’ ) ) . ‘</div>’ . $content;
It works fine with the earlier PHP version. Should I go ahead and try the new code or do you see something above that changes that?
Thanks,
RobDecember 14, 2021 at 5:03 pm #1332821Hi,
Strange. The only idea I have is that the ” ‘ ” are not the usual ASCII single quote but something different and PHP 8 does not accept that any longer.
Please try my new code.
Best regards,
GünterDecember 14, 2021 at 6:04 pm #1332841The new code works and I’m back on PHP 8… thank you very much Günter!
Best,
Rob -
AuthorPosts
- The topic ‘Important: Enfold 4.8.8 bug with RSS Feed? (Update: Issue = PHP 8 & child theme)’ is closed to new replies.