problem with pictures in feeds

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
TomLi
Registered User
Posts: 13
Joined: Fri Mar 12, 2004 9:40 am

problem with pictures in feeds

Post by TomLi »

Hi,

I have upgraded my forum successfully from 3.0.14 to 3.2.0 (installed from scratch on new host and migrated database)

But now, I have a small issue with the Atom feeds...

Embedded pictures (smilies too) do not show up in the feed. The pictures show correctly in the forum. It seems that there is a link built wrongly. - Two examples:

<img src="./.http://forum.tlienhard.com/phpBB3/downl ... hp?id=5664" class="postimage" alt="P1110863_640x480.JPG" onclick="viewableArea(this);" />

<img class="smilies" src="./.http://forum.tlienhard.com/phpBB3/image ... rgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green">

The problem seems to be that ./. in front of the URL. The link itself ( http://forum...) is ok.

Is there something that I have misconfigured?, or, how can I fix that?
Every help is welcome.

Regads Tom
Last edited by TomLi on Tue Mar 21, 2017 12:57 pm, edited 1 time in total.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22839
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: problem with pictures in feeds

Post by Mick »

What are you using for RSS feeds, is it an extension or did you hard code it yourself? If you're talking about atom feeds then that's a different story.
"The more connected we get the more alone we become" - Kyle Broflovski©
TomLi
Registered User
Posts: 13
Joined: Fri Mar 12, 2004 9:40 am

Re: problem with pictures in feeds

Post by TomLi »

I'm using the default feeds in phpBB 3.2.0 - Header is <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">, so it's an Atom feed, you are right, but most feedreaders don't care it it's RSS or Atom. The problem is that the pictures do not show anymore because there is an ./. in front of the URL...
TomLi
Registered User
Posts: 13
Joined: Fri Mar 12, 2004 9:40 am

Re: problem with pictures in feeds

Post by TomLi »

My current workaround is the following php file that cuts out the wrong ./. from the feed file:

Code: Select all

<?php
$url = 'http://forum.tlienhard.com/phpBB3/app.php/feed';
$handle = curl_init($url);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
$html = curl_exec($handle);
libxml_use_internal_errors(true); // Prevent HTML errors from displaying
$newhtml = str_replace("./.http", "http", $html);
echo $newhtml;
?>
This works for the main feed, but not for all the sub forum feeds... (would need a file for each feed)
Hope that phpBB developers can find the bug and fix it for the next release...
criocere
Registered User
Posts: 17
Joined: Fri Jun 16, 2017 12:05 pm

Re: problem with pictures in feeds

Post by criocere »

Hello,

I just did a migration from 3.0.12 to 3.2 and I have the same bug.

How did you fix it? Is there a patch?

Thanks
TomLi
Registered User
Posts: 13
Joined: Fri Mar 12, 2004 9:40 am

Re: problem with pictures in feeds

Post by TomLi »

I haven't fixed it yet. There is no patch yet as far as I know.I still have the problem.
The workaround above helps me a little bit. I hope that the next version (3.2.1) will fix it.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22839
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: problem with pictures in feeds

Post by Mick »

TomLi wrote:
Thu Apr 13, 2017 8:05 pm
Hope that phpBB developers can find the bug and fix it for the next release...
If you believe it to be a bug then you should report it in the bug tracker otherwise the dev's may never see the issue.
"The more connected we get the more alone we become" - Kyle Broflovski©
TomLi
Registered User
Posts: 13
Joined: Fri Mar 12, 2004 9:40 am

Re: problem with pictures in feeds

Post by TomLi »

It might me bug, it might also be a misconfiguration, I have no idea. I don't know how to report a bug, I have never done that. I was hoping that developers are also reading such a forum.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22839
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: problem with pictures in feeds

Post by Mick »

TomLi wrote:
Fri Jun 16, 2017 6:24 pm
I was hoping that developers are also reading such a forum.
The dev's have enough to do, they don't generally spend a lot of time looking in support just in case a bug should appear. Unfortunately to get stuff changed you need to do a little legwork. You should go here, your credentials from here should work in the tracker.
"The more connected we get the more alone we become" - Kyle Broflovski©
TomLi
Registered User
Posts: 13
Joined: Fri Mar 12, 2004 9:40 am

Re: problem with pictures in feeds

Post by TomLi »

OK, I opened a bug report. Hope that this helps them to track this issue.
https://tracker.phpbb.com/browse/PHPBB3-15245
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22839
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: problem with pictures in feeds

Post by Mick »

Thank you ;)
"The more connected we get the more alone we become" - Kyle Broflovski©
User avatar
WelshPaul
Registered User
Posts: 401
Joined: Tue Aug 19, 2014 2:09 pm

Re: problem with pictures in feeds

Post by WelshPaul »

I too have this issue...

Basically the src of the img tag is written like so:

Code: Select all

./../.https://www.domain.com/download/file.php?id=427&amp;t=1&amp;sid=faa7edc16a483f03077ecfe2cc9596bb
This obviously results in broken/missing images, the full line of code is shown as:

Code: Select all

<img class="img-post" src="./../.https://www.domain.com/download/file.php?id=427&amp;t=1&amp;sid=faa7edc16a483f03077ecfe2cc9596bb" alt="pap_backlabel.png" title="pap_backlabel.png (380.18 KiB) Viewed 466 times" />
Obviously it should either be:

Code: Select all

<img class="img-post" src="./download/file.php?id=427&amp;t=1&amp;sid=faa7edc16a483f03077ecfe2cc9596bb" alt="pap_backlabel.png" title="pap_backlabel.png (380.18 KiB) Viewed 466 times" />
Or:

Code: Select all

<img class="img-post" src="https://www.domain.com/download/file.php?id=427&amp;t=1&amp;sid=faa7edc16a483f03077ecfe2cc9596bb" alt="pap_backlabel.png" title="pap_backlabel.png (380.18 KiB) Viewed 466 times" />
TomLi
Registered User
Posts: 13
Joined: Fri Mar 12, 2004 9:40 am

Re: problem with pictures in feeds

Post by TomLi »

I have just updated to Version 3.2.1. The issue is still the same. Also the entry in the bugtracker is still unassigned. Unfortunately, it seems that nobody cares...
User avatar
WelshPaul
Registered User
Posts: 401
Joined: Tue Aug 19, 2014 2:09 pm

Re: problem with pictures in feeds

Post by WelshPaul »

I have hundreds and hundreds of errors in my Google search console because of this. :roll:
User avatar
WelshPaul
Registered User
Posts: 401
Joined: Tue Aug 19, 2014 2:09 pm

Re: problem with pictures in feeds

Post by WelshPaul »

A temporary fix is to open phpbb/feed/helper.php and find:

Code: Select all

		// Remove Comments from inline attachments [ia]
Replace with:

Code: Select all

		// Tempory fix added by WelshPaul
		$content = str_replace('./../.','',$content);

		// Remove Comments from inline attachments [ia]
My images had the following broken url format: ./../.http://

If yours is different, e.g. ./.http:// then replace:

Code: Select all

$content = str_replace('./../.','',$content);
With:

Code: Select all

$content = str_replace('./.','',$content);
I know this isn't the right way to go fixing the issue, so keep your negative comments to yourselves. It's a temporary solution until the phpbb team fix the real issue and that likely won't happen until sometime next year now. :cry:
Post Reply

Return to “[3.2.x] Support Forum”