Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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.
    #611635

    Hi 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,
    Rikard

    #611775

    Hi Rikard,

    Thanks for your reply.
    The theme files are updated, but it doesnt solve the problem.

    Michel

    #611785

    In 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.
    #613711

    Hey!

    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,
    Andy

    #616597

    Disabled all plugins, removed all theme files, uploaded the latest theme files, but that didnt fix the problem.

    #618120

    Hi!

    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,
    Andy

    #619814

    Finally! 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

    #620415

    Hi Michel,

    Great, glad you found the problem :-)

    Thanks,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Loaded over HTTPS, but requested an insecure stylesheet after moving site’ is closed to new replies.