By Matheos van den Brom on Monday, 13 June 2016
Posted in Technical Issues
Likes 0
Views 426
Votes 0
Hi, yesterday I was able to upload several cover images to my articles. Today nothing works. An other browser, restart etc.... no upload anymore. File size is ok, directory is 755..... What now?
Hey Matheos,

For us to troubleshoot this further, can you provide us your ftp access?
You can do this at http://stackideas.com/dashboard/site
·
Monday, 13 June 2016 18:01
·
0 Likes
·
0 Votes
·
0 Comments
·
done...
·
Monday, 13 June 2016 18:14
·
0 Likes
·
0 Votes
·
0 Comments
·
I hope you know what you're doing because now my text editor and my price calculations in VirtueMart doesn't work anymore! They where working before you starting to login as admin :-(
·
Monday, 13 June 2016 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Matheos,

When I tried to upload one of the photo through Easyblog media manager, then I hitting this following error :

Response for preflight is invalid (redirect)

Font from origin 'https://yourdomain.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.yourdomain.com' is therefore not allowed access.


If I am not mistaken, these following code what you trying to do is when someone access your site URL without www prefix, it will redirect to https://www.yourdomain.com (with www prefix).

RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]

RewriteCond %{HTTPS} off [NC]

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTP_HOST} ^yourdomain.nl [NC]

RewriteRule ^(.*)$ https://www.yourdomain.nl/$1 [L,R=301]


After that, I also noticed you have hardcoded your live_site value from your configuration.php file, which is not really make sense is because based on what you trying to do from your .htaccess file, you tell the server MUST be use `https://yourdomain.com` but your above code is tell the server redirect to https://www.domain.com when someone trying to access https://yourdomain.com .

By the way, I already help you remove the `live_site` value form configuration.php file, you should able to upload image on your site now, can you give it a check and see how it goes?
	
public $live_site = 'https://yourdomain.com';

// Replace with
public $live_site = '';
·
Monday, 13 June 2016 19:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes thanks!!!
·
Monday, 13 June 2016 20:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Matheos,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Monday, 13 June 2016 20:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post