-
AuthorPosts
-
April 11, 2016 at 2:03 pm #611269
Hi,
Since my website is moved from local to live (with https), the back-end doesn’t work anymore. the stylesheet and javascript doesn’t load, so i cant save the settings anymore.
When i take a look in the source of the page, i see lots of ‘Loaded over HTTPS, but requested an insecure stylesheet’ errors.The path to the CSS files is: ‘http://WEBSITE.nl/css/avia_admin.css?ver=2.3’. But also wp-content/themes/enfold is missing.
i cecked the file/framework/php/inc-autoconfig.php line 32, where AVIA_BASE_URL is located. I changed this to:
echo get_template_directory_uri();echo ‘<br />’;
echo AVIA_BASE_URL;echo ‘<br />’;
if( ! defined(‘AVIA_BASE_URL’ ) ){ echo ‘@’; define( ‘AVIA_BASE_URL’, get_template_directory_uri() . ‘/’); }
echo AVIA_BASE_URL;echo ‘<br />’;
The output:
https://WEBSITE.nl/wp-content/themes/enfold
AVIA_BASE_URL
@https://WEBSITE.nl/wp-content/themes/enfold/Why are my css and js files not loaded? Also some images wont load.
Thanks!
Michel- This topic was modified 7 years, 11 months ago by gflex.
April 12, 2016 at 5:40 am #611635Hi Michel,
Could you please try to overwrite the theme files with a fresh copy from your Themeforest account via FTP to see if that helps? http://kriesi.at/documentation/enfold/updating-your-theme-files/
Thanks,
RikardApril 12, 2016 at 9:58 am #611775Hi Rikard,
Thanks for your reply.
The theme files are updated, but it doesnt solve the problem.Michel
April 12, 2016 at 10:50 am #611785In register-admin-options, i printed:
echo '<p r e>'; print_r(get_defined_constants()); echo '</ p r e>'; echo AVIA_IMG_URL;
the avia_img_url is defined in get_defined_constants, but it is empty when echo’ing AVIA_IMG_URL;
- This reply was modified 7 years, 11 months ago by gflex.
April 14, 2016 at 11:46 am #613711Hey!
overwriting might not seem enough as there might be some corrupted files. So please delete all theme files completely via FTP, before installing a fresh copy from your themeforest account: http://kriesi.at/documentation/enfold/install-enfold-over-ftp/
Make sure to keep all plugins deactivated while testing (via FTP).
Best regards,
AndyApril 18, 2016 at 3:55 pm #616597Disabled all plugins, removed all theme files, uploaded the latest theme files, but that didnt fix the problem.
April 20, 2016 at 10:05 am #618120Hi!
sounds to me as if you WP installation is corrupt. Activate a default WP theme and check if you have the same issue or not and let us know about your results.
Best regards,
AndyApril 22, 2016 at 12:10 pm #619814Finally! I Found it.
I have a lot of redirects, about 700 and 1 of the redirects was:
Redirect 301 /wp-content/themes/enfold/framework/ http://WEBSITE.nl/
I dont know why i added that redirect. I think it was in the list of webmastertools.
I removed that line and that solved the problem.Thanks.
Michel
April 23, 2016 at 8:49 am #620415 -
AuthorPosts
- The topic ‘Loaded over HTTPS, but requested an insecure stylesheet after moving site’ is closed to new replies.