By Gilles on Thursday, 13 August 2015
Posted in General Issues
Likes 0
Views 772
Votes 0
We created a new post. The notification which is sent shows a broken image icon.
Please advise. (see screenshot)
Cheers,
Hi Gilles,

I just checked the email notification from email activity area and it seems like the image did get generated correctly. Check my screenshot here, http://screencast.com/t/pT9VCZHgev . Am I missing something here?
·
Thursday, 13 August 2015 12:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Strange.
What could be causing this then? We didn't do anything out of the ordinary. The email just didn't generate the image.
Can I forward you the email so you can have a better look?
·
Thursday, 13 August 2015 19:57
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gilles,

Can I have the permission create a test post in your site, so I can directly see is it the image show correctly in email notification?
·
Friday, 14 August 2015 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex but I'd prefer not to.
We've had several complaints already from users who refused confusing test emails.
How about I forward you the email I received? Wouldn't this help you in determining the cause?
·
Friday, 14 August 2015 01:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Unless you can set something up so only you receive the test email... that would work as well I just don't want users to receive any more tests as the site is a paid site and don't want to annoy paying customers.
·
Friday, 14 August 2015 01:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure, please forward an email to arlex.wong AT stackideas.com and mark AT stackideas.com
·
Friday, 14 August 2015 02:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Great. I just forwarded it to both emails.
·
Friday, 14 August 2015 02:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, this is odd. What email client do you use? In EasyBlog 5, we are conforming to the standards defined in http://www.ietf.org/rfc/rfc3986.txt where it uses generic URLs like "//" instead of enforcing "http://" or "https://". Read on about it here, http://stackoverflow.com/questions/550038/is-it-valid-to-replace-http-with-in-a-script-src-http

Anyway, I have attached the file below, can you upload it into /administrator/components/com_easyblog/includes/post/ and try this with your next post since we can't create test posts.
·
Friday, 14 August 2015 02:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks.
I'm using thunderbird with IMAP protocol.

OK, I'll replace the file. What did you change in it?
·
Friday, 14 August 2015 02:47
·
0 Likes
·
0 Votes
·
0 Comments
·
I am not sure if this fix is applicable or not because on our local mail clients and gmail, it works fine. I have added 2 lines in the file at line 2211


// We need to fix the blog intro and content to avoid src="//
$data['blogIntro'] = JString::str_ireplace('src="//', 'src="http://', $data['blogIntro']);
$data['blogContent'] = JString::str_ireplace('src="//', 'src="http://', $data['blogContent']);
·
Friday, 14 August 2015 02:52
·
0 Likes
·
0 Votes
·
0 Comments
·
OK... Let's wait until the next blog notification email is sent. Meanwhile, I'll see if another user with a diff client (yahoo) had the image correctly displayed.
Thanks for your efforts.
·
Friday, 14 August 2015 02:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure, let me know how this goes.
·
Friday, 14 August 2015 03:01
·
0 Likes
·
0 Votes
·
0 Comments
·
By the way Mark, I just viewed the html source of the email which contains the broken image. This code, generated by EB is being generated for the image. Note that the url is not specific and that's why it created a "broken image link" (see the "src" parameter)

So it would appear the email is incorrectly being generated. Agree? Can you guys fix this issue?

                <p><img style="display: block; margin-left: auto; margin-right: auto;" alt="ghost1" src="images/ghost1.jpg" height="500" width="442" /></p>


Cheers,
Gilles
·
Wednesday, 09 September 2015 04:13
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gilles,

I am really sorry that delay of this reply,

perhaps you can forward this broken image email to me ( arlex.wong@stackideas.com ) ?

By the way, may i know that broken image email you view from thunderbird desktop program?

Check my screenshot here : http://screencast.com/t/eOYPyONwLi
·
Wednesday, 09 September 2015 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,
I just forwarded it to you.
Let me know what you think as soon as you can.
Yes, I used Tunderbird and did the "view source" in ithunderbird.
Gilles
·
Wednesday, 09 September 2015 19:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Gilles,

I am really sorry that delay of this reply,

Try download my attached file and replace into JoomlaFolder\administrator\components\com_easyblog\includes\post\post.php

and see how it goes? Make sure test on new email notification with email content.

Keep us updated then the result.
·
Friday, 11 September 2015 01:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex,
Just so no one wastes time...
did you find an issue in the post.php? Is it a different one than Mark had provided earlier in this post?
·
Friday, 11 September 2015 01:42
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gilles,

I am really sorry that delay of this reply,

Actually I am not really sure my fix is it correct without testing in your site, since you already mentioned you have several complaints from your site users who refused confusing test emails.

It would be best if you can setup another test server so we can directly troubleshoot on this issue prevent your site user complaint about this.

By the way, may i know after you applied my fix is it okay now? Keep us updated then.
·
Friday, 11 September 2015 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,
I can not create a test server for testing this. We've wasted way too much time troubleshooting and reporting bugs in EB as it is.
It could be two weeks before my client tries it again and would very much like to avoid the "broken image" issue before the next post.

Can this not be tested at your end? As a developer, don't you have test sites? Can you not set one up if not?

Gilles
PS. As an aside, I see so many emails from EB mentioning "I am really sorry that delay of this reply," If EB recognizes there is a problem with long delays in replying, why not try to correct the situation instead of constantly apologizing?
Please note that this comment is not made to offend but just pointing out an ongoing issue which could be addressed to maintain good customer service.
·
Friday, 11 September 2015 18:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Gilles,

Actually I've tested in our test server before I replied you last night.

Anyway, I tested again submit a new post and check the email from Thunderbird, it seems like the image display correctly here, please check my attached screenshot below.

In order to replicate this issue without mess up your live site, it would be best you can copy with your live site server file to another new test server site, so that we can test on your test server regarding this issue as you reported.
·
Friday, 11 September 2015 20:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for testing on your server.
As I mentioned, I can not create a test environment to troubleshoot EB issues. Too time consuming.
I'll drop in the post.php file and will let you know if the issue persists when the client posts again.
·
Friday, 11 September 2015 21:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Gilles,

I am really sorry for the delay of this reply as it is a weekend for us here. Sure, let us know how this goes.
·
Sunday, 13 September 2015 14:24
·
0 Likes
·
0 Votes
·
0 Comments
·
The issue persists.
I had dropped in the new file. before my client posted again, I suddenly received a new error attempting to post

Fatal error: Call to undefined method EasyBlogPost::getAssociation() in /homepages/0/d474424251/htdocs/wonderlit/administrator/components/com_easyblog/includes/composer/composer.php on line 297

To fix this, I updated EB. I assumed I wouldn't have to drop in the file again as I assumed the new release (+2 minor releases) would contain the fix.
Now... others are experiencing the issues.

see post:
http://stackideas.com/forums/broken-image-in-post-notification-1

Come on guys.... This issue or a variety of it has been reported over one month ago.
Please provide good customer service and fix issues in your software in timely manner!
We waste so much time with EB bugs it's appalling and frustrating.
Gilles
·
Tuesday, 22 September 2015 21:41
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gilles,

We still investigating on this customer reported the similar issue with you, and he also mentioned that image broken happening on gmail, we will update you the status since he given the permission to troubleshoot on his site.
-> http://stackideas.com/forums/broken-image-in-post-notification-1
·
Wednesday, 23 September 2015 17:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex.
Seems like you fixed the bug with the other client. Can you tell us how to fix it ASAP please?
Cheers,
G
·
Wednesday, 23 September 2015 20:42
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gilles,

I am still investigate on this and I will keep you update regarding this.
·
Friday, 25 September 2015 18:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex,
This was first reported back on August 13, over one month ago.
We need this resolved ASAP as my client is running a paid membership site and cannot create posts with broken images to paid members.
I've also forwarded email examples to you and a colleague.

How can it be an email client issue when the email message html created by EB contains a broken image link? I specified before that the image link had a relative URL which can not be resolved. It should be an absolute URL. The email client is merely displaying the email generated by EB. The problem is with EB. Nothing to do with the email client.

Please fix this bug. Look how long this thread is! I've once again wasted so much time with EB bugs/issues.
Cheers,
·
Friday, 25 September 2015 19:28
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gilles,

That would very hard to say is it not related with email client issue yet, since we can't reproduce this issue on our end.

I already send a new post "test email image broken issue" notification in your email address, can you give it a check?

As you said your client also having this issue when they view email on Gmail, but it work fine in my Gmail and Thunderbird.

You can take a look of my attached screenshot below. (first screenshot is view on Gmail, and the rest view on Thunderbird)

if the issue still persists, can you provide us with your Thunderbird access and grant us permission to submit a test post in your site so we can troubleshoot on this and see what is the issue causing this rather than test on our own server test site?
·
Monday, 28 September 2015 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex,
I received the post and the image appears as expected (thunderbird). If I look at the msg source, I see the correct full url for the image, hence why it displays:
<img src=3D"http://autopost.stackideas.com/images/eas=
yblog_articles/372/b2ap3_thumbnail_red-lamborghini-huracan-1920x1200-wall=
paper-17336.jpg"/>


As mentioned before, when someone posts on our site, the url is incomplete. Unless you changed some code, the issue/bug will still be present on our site next time we post.
EB is not creating the message correctly....

We will post again soon and need this fixed.
back to you.
·
Wednesday, 30 September 2015 23:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Gilles,

Thanks for getting back to us with my test post image is shown correctly on your mailbox.

As I mentioned at above of my replies before, it would be best if you can provide us with your Thunderbird access and grant us permission to submit a test post in your site so we can troubleshoot on this and see what is the issue causing this rather than test on our own server test site?

By the way, let try download my attached file and replace into -> JoomlaFolder\administrator\components\com_easyblog\includes\post\post.php and see how it goes?
·
Friday, 02 October 2015 11:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Over 45 days since this was reported. Where is the "good support" EB brags about?

Arlex, first, it is unreasonable to ask a client for access to his email to resolve this. It is not an email program issue. The email program interprets the email msg received. As I pointed out to you, the email created by EB is erroneous as the image url is incomplete. This is why my client also experienced the error with Outlook.

I don't know how I can be clearer, I seem to be repeating myself.

1. What have you changed in the post.php file? last time you provided a new file, nothing changed. same error.
·
Friday, 02 October 2015 12:31
·
0 Likes
·
0 Votes
·
0 Comments
·
In addition to the above,
I could give you permission to create a post only if you're able to ensure only my account receives the notification.
We can't have every subscriber receive tests as this is very unprofessional for paying members of the site.

I look forward to hearing from you... sooner than you have been responding. The lag in response time and helping us resolve this issue is unsatisfactory.
·
Friday, 02 October 2015 22:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Gilles,

I am really sorry for the delay of this reply as it is a weekend for us here. Please do understand that your unwillingness to cooperate with us in identifying this issue makes it even more difficult for us to troubleshoot this problem since this issue is only seems to occurring in your instance

The other issue posted by Dominique at http://stackideas.com/forums/broken-image-in-post-notification-1 has already been resolved when he updated to the latest version of EasyBlog.

This has to have a closure for you and us and we really need to create a new blog post on the site. If you only want yourself to get the notification, you can remove the rest of the users from the subscribers list. Otherwise, please do consider setting up a test site so that we can troubleshoot this issue for you.

I am sorry but I am afraid that if you are still reluctant to provide us with the necessary permissions to debug this, we will not be able to assist you with this issue.
·
Sunday, 04 October 2015 22:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark,
you didn't answer my question...
what was changed in the post.php file?
·
Sunday, 04 October 2015 23:40
·
0 Likes
·
0 Votes
·
0 Comments
·
I am not sure what Arlex has modified as he was trying to simulate the problems on your site but as soon as he gets to the office tomorrow, I will ask him to report his findings here.
·
Sunday, 04 October 2015 23:45
·
0 Likes
·
0 Votes
·
0 Comments
·
OK.
Having been a programmer for over many years in the past, I still don't understand why you don't look carefully inspect the code which creates the email notification. I have shown that the img url is erroneously created. Therein lies the problem lies in the notification creation.
Yes, sometimes it can be challenging to find these bugs but... you need to keep an open mind and look for all possibilities that could create the full url to be inserted in the email notification message as it is created.
·
Monday, 05 October 2015 00:02
·
0 Likes
·
0 Votes
·
0 Comments
·
As we have mentioned this several times, we can't reproduce this locally. We tested this on several different instances, and also tested this on our public test site and they are all working fine. Something is not right with your current setup / server / incompatibility somewhere which is why we need to test it on your site.
·
Monday, 05 October 2015 00:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Gilles,

Believe me, as much as you want to get this resolved, we too want to get this resolved! It's a no-brainer to have this issue on your site But our hands are really constrained right now as to what we can do to reproduce this error.

As soon as Arlex gets to the office tomorrow, I will make sure he informs me about what is going on. I have been away for about the past 2 weeks with several meetings with the template developers around this region and this is why we are a little shorthanded.
·
Monday, 05 October 2015 01:00
·
0 Likes
·
0 Votes
·
0 Comments
·
We can not blast our users with yet another test, but... we will be doing another live test with a blog post and I'll let you know how it works out.
Fingers crossed.
·
Monday, 05 October 2015 02:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Gilles,

I am sorry that delay of this reply,

I could give you permission to create a post only if you're able to ensure only my account receives the notification.
We can't have every subscriber receive tests as this is very unprofessional for paying members of the site.

May i know you already replaced my latest attached file in your site?

Okay, I will disable all the notification setting from your backend except "Notify admin on new entries" and add my email address and yours in the `Custom Email Address` field, you can take a look of my screenshot below. So when the new post publish in your site, the system only notify to your site admin and custom email address. Is it everything okay? If yes, can you provide us with your Joomla backend access again? Because I've tried to login but it seems like you provided that login credentials is not working now.

Looking forward of your response.
·
Monday, 05 October 2015 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
OK Arlex, since users won't receive the test blog/notification, you can go ahead.
Yes I did replace the post.php file you provided. site details for backend access have been entered below.

Again, I ask, what did you change?

Once you post the blog and receive the notification, can you please remove the blog entry or "hide" it so users who visit the site won't see it?
Thanks,
Keep me posted.
·
Monday, 05 October 2015 19:53
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gilles,

Thanks for getting back to us.

Hmm, that was strange, when I test on my first post with the latest fix, I getting this double domain url :

http://yoursite.com///yoursite.com/images/easyblog_images/399/b2ap3_thumbnail_lamborghini-huracan-white-1920x1200-wallpaper-17321.jpg


But when I revert back to original code what Mark fix for you before it work fine -> http://stackideas.com/forums/broken-image-in-post-notification#reply-216865

I believe you already received my second test post called "This post I revert back to original code", can you check with your mailbox is it show correctly?

By the way, I already checked my email, the image shown correctly, you can take a look of my attached screenshot below.
·
Monday, 05 October 2015 20:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,
this is indeed very strange.
I got the same behaviour as you. First test, no image... second test... image is present.

The last time Michelle had posted, the image was broken due to the image url being incomplete and not specific enough, using a relative path... and now it looks like it magically works (with the original post.php ... the one prior to the one you had just sent me.)

The only other thing I can think of is if it is user dependent. I know it shouldn't be but....
The user who was posting was Michelle Tocher.

Would you like to test under her account? Again... I'm ok with this as long as no one receives the tests.

Do you have other ideas or should we just wait to see what happens when she posts again? She's getting a new post ready... not sure when it will be posted.

G
·
Monday, 05 October 2015 20:39
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gilles,

Yes, that was really strange, I've submit a new post in your site(this test post posted by Michelle), it seems like that image is show correctly.

If your email notification image also show correctly, I think need to wait for your user publish their new post again.
·
Monday, 05 October 2015 20:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I confirm that it is showing correctly.

The only other thing I can think of is if she was inserting the image the way you were. She's not using the Composer, using the original JCE method because composer doesn't allow the insertion of images with the same freedom of placement as JCE does.

How are you inserting the image? Did you try with JCE?
Gilles
·
Monday, 05 October 2015 21:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex...if the problem is that JCE uses a relative path, then the fix would be to add some logic to EB's notification to do a sanity check on this and if it's a relative path, recreate the full path prior to sending the email notification.

We don't want to change JCE's beahviour as a relative path for images on the site is critical. If the site moves, the links will remain valid.

Back to you,
Gilles
·
Monday, 05 October 2015 21:41
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gilles,

Yes, you are absolutely right, this image broken issue is related if the user upload photo from JCE editor, by right you can change to use absolute path from JCE editor configuration page.

By the way, we already applied some fix in this file JoomlaFolder/administrator/components/com_easyblog/includes/post/post.php , it should work fine now, you can check with your mailbox regarding this test post `final post`, that post which I included upload from Easyblog and JCE media manager.
·
Tuesday, 06 October 2015 14:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for programming a fix Arlex. The latest test does indeed display the images... well done.
Some notes:

1. As noted before "
We don't want to change JCE's beahviour as a relative path for images on the site is critical. If the site moves, the links will remain valid.
. For this important reason, NOT using absolute path is the default behaviour of JCE and why 99% of installations use relative path. EB should consider seriously consider using the same approach and use relative paths in their composer (with the fix)
Q. Is the fix included in the next release of EB or will it break on next update?

2. Since you feel confident about the fix you applied, would you please revert the notification settings back to the way they were such that when Michelle posts the next blog entry, notifications will be sent to those same members (as in before the tests)? - Thanks. ... As you recall, for the tests you disabled the sending of notifications to subscribed members.

You've almost got this one wrapped up
Gilles
·
Tuesday, 06 October 2015 19:29
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome, we already applied the fix in next release version and I reverted back all the notification settings changes from your backend Easyblog before I finish my testing on your site.
·
Tuesday, 06 October 2015 19:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Excellent. thank you.

Correct me if I'm wrong but since composer doesn't use a relative path as it should, anyone moving the site will break all images which exists in posts. Correct?

Gilles
·
Tuesday, 06 October 2015 19:58
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.

Nope, it won't break the image which exists on your posts is because we using a programming trick to load back your current domain name in image url.
·
Tuesday, 06 October 2015 22:19
·
0 Likes
·
0 Votes
·
0 Comments
·
OK.. Great to hear.
G
·
Tuesday, 06 October 2015 22:40
·
0 Likes
·
0 Votes
·
0 Comments
·
I will mark this thread as resolved and lock it to avoid any confusions in the future, but if you need any help please feel free to start a new thread in our forums.
·
Tuesday, 06 October 2015 22:44
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post