By Alan Niven on Sunday, 06 July 2014
Posted in Technical Issues
Replies 18
Likes 0
Views 720
Votes 0
When trying to upload images the process fails and returns "Unable to parse server response."

Uploading images in the backend works fine.

Alan
hey alan,
yes there's an easy way to get the .html file extension back to your url's.
directly in your joomla backend (not easyblog or anything else) go to site -> global configuration - by default you're in the "site" tab right now.
have a look at the right side, there's a box called "seo settings" and in there you have an option "Adds Suffix to URL". switch this to YES - then all your links will have the .html, that's it.

hope that helps
·
Monday, 21 July 2014 06:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan,

Please provide us with the FTP access to your site to inspect this issue.
·
Sunday, 06 July 2014 13:17
·
0 Likes
·
0 Votes
·
0 Comments
·
I use the component OSE fileman.
·
Sunday, 06 July 2014 23:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Please provide us with the FTP access because we are going to modify sensitive files and if it messes up, it might mess up the entire site. This is not the risk that we are going to take even if you allow this to happen
·
Monday, 07 July 2014 01:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Here is the info.
·
Monday, 07 July 2014 07:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan,

After testing this, it seems like SH404 is redirecting the requests when a new file is being uploaded on the site. We actually have tmpl=component added on the URL that is used to upload the files but SH404 still seems to be redirecting the requests to SEF urls.

Take a look at my screen shot here, http://screencast.com/t/lB7MRTHpS
·
Monday, 07 July 2014 12:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Well I'm stumped. I've try disabling sh404 for EasyBlog as will as simple mode but got the error "HTTP Error."

I've tried clearing all caches and that I can find and purging the sh404 URL manager.

Searching for "place=user" and "Whats-New/Featured" in sh404 Aliases manager with no matches to redirection.

I also purged the sh404 404 requests manager.

Ran Maintenance: Global Check-In.

Ran Maintenance: Clear Cache.

Ran Maintenance: Purge Expired Cache.

Purged the EasyBlog cache.

I still get "Unable to parse server response." on media upload.

What can you suggest. Could this be a permission problem?

Alan
·
Tuesday, 08 July 2014 06:11
·
0 Likes
·
0 Votes
·
0 Comments
·
You need to check this with SH404 because it's enforcing a 301 redirect even if theres &tmpl=component in the query string. In most SH404 installations, these URLs are not being redirected but on your site, it seems to be enforcing a redirect for some reasons.
·
Tuesday, 08 July 2014 15:12
·
0 Likes
·
0 Votes
·
0 Comments
·
I contacted sf404sef tech and they have provided the following response:

-----------------------
RE: Subject: EasyBlog Ajax calls are trashed by sf404
Author: jimie
Hello

Are you sure you reported on easyblog support forum ? Because they also have their own sh404sef plugin for sh404sef, so sh404sef is rewriting sef urls for easyblog as they "tell" to sh404sef in their plugin, more then that I tested on our test websites and easyblog works as expected for us with sh404sf.

Also checking in your website I found this two javascript errors:


Uncaught TypeError: Cannot read property 'set' of null md_stylechanger.js:66
Uncaught TypeError: Cannot convert undefined or null to object foundry.min.js:410

Maybe that can help easyblog guys to continue their troubleshooting.

-------------------

Does this help towards finding a solution?

Alan
·
Thursday, 17 July 2014 01:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan Niven,

I'm really sorry that delayed of this reply,
As Mark noticed that request URL redirecting so you hitting the "unable-to-parse-server-response"
I have do a comparison with the original URL generate from Easyblog when i try to upload the image in Easyblog (disable the sh404sef):
http://witchesandpagans.com/dashboard/write

Request URL:http://witchesandpagans.com/index.php?option=com_easyblog&controller=media&task=upload&tmpl=component&format=json&sessionid=f04a26fdfff7ce27ff608a0a5b08d2e0&c35581eb19aa595f542fa3d16b9e3d70=1&bloggger_id=42&lang=en&place=user:42&path=%2F


If i enabled back the sh404SEF, then the request URL become :
http://witchesandpagans.com/EasyBlog/Dashboard/Write.html

http://witchesandpagans.com/Whats-New/Featured/json.html?bloggger_id=42&c35581eb19aa595f542fa3d16b9e3d70=1&controller=media&path=/&place=user:42&sessionid=f04a26fdfff7ce27ff608a0a5b08d2e0&task=upload&tmpl=component


It look like this SEF URL Whats-New/Featured/json.html is come from your SH404SEF URL, check my screenshot below.

May i have the permission to help you reconfigure again the EasyBlog routing behaviour and cleanup all the Easyblog SEF URL from sh404sef and see how it goes? Please advise.
·
Thursday, 17 July 2014 14:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes you have permission. If it works, I would appreciate to know the steps taken, so in the future I may be more successful at cleaning.
·
Friday, 18 July 2014 01:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan Niven,

I'm really sorry that delayed of this reply,
I have temporary disabled your SH404sef now, because when i trying to remove 100 SEF URL per times, it will auto generate the new SEF URL,

Can i have your PHPmyadmin access so i can run the SQL query to remove all the Easyblog SEF URL from your SH404?
because there have a lot of pages regarding this EasyBlog SEF URL check my screenshot : http://screencast.com/t/MsYsRaL5I
Please advise.
·
Friday, 18 July 2014 15:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan Niven,

After checking again and cleanup the EasyBlog SEF URL from SH404SEF, but I'm not sure that URL keep get your What’s New menu item when the server return back the data, the real URL redirect to
index.php?option=com_easyblog&Itemid=101&format=json&lang=en&view=featured

Check my screenshot below.
The SH404SEF extension is it very useful in your current site?
·
Friday, 18 July 2014 17:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thanks for working so hard on this. It's true that sh404 seems like it may be more trouble that it is worth. I have turned it off for the time being to see how new urls are handled by Joomla and EasyBlog in native format. I must say that new EasyBlog urls don't look much different and it does solve the image upload and comment problems and maybe a few other glitches too.

I leave this open for a a few more days while I eval the current config.

I would be interested to know what browser/debug setup you were using for the url screen captures. Was that just with Firefox and Firebug or was another monitor involved?

Thanks, Alan
·
Saturday, 19 July 2014 01:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan Niven,

I am really sorry for the delay of this reply as it is a weekend for us here.
You're welcome, that was our pleasure if we can help you here.
Okay, keep us updated then, if the EasyBlog generate the URL is not suit your requirement.

I would be interested to know what browser/debug setup you were using for the url screen captures. Was that just with Firefox and Firebug or was another monitor involved?

>> Based on my screenshot, I'm using the Chrome development tools (right click on the webpage > click inspect element > Click Network or console tab), you can check for the request or ajax call.
>> This tools also same as FireFox Firebug. Hope this help.
·
Saturday, 19 July 2014 14:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for the debug tools descriptions, I will try them out.

So a lot of problems were solved by disabling sh404sef, and I'd just as soon leave it turned off permanently. When turned off it does change the url to all content, altho not by much.

With sh404 enabled a typical EasyBlog link would look like:
http://witchesandpagans.com/SageWoman-Blogs/durga-in-the-streets-of-dc.html

Without sh404 a the same article url is:
http://witchesandpagans.com/sagewoman-blogs/durga-in-the-streets-of-dc

Is there anyway to add back the missing ".html" using the standard Joomla/Easyblog/.htaccess system (without sh404?)

Alan
·
Monday, 21 July 2014 05:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, that works. I think if I want to map old urls with .html endings into new urls sans the .html I can do that with .htaccess too.

All the best.
Alan
·
Monday, 21 July 2014 09:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan Niven,

Thanks for getting back to us that is worked.

Thanks Alex.
·
Monday, 21 July 2014 11:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post