$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>errors - Without access to the FTP, how can I fix the index page?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

errors - Without access to the FTP, how can I fix the index page?

matteradmin8PV0评论

The company I work for decided that I am now the "website owner", but will not grant access to the FTP files. The index page looks like the theme or CSS is broken. I do have Backup Buddy installed and I am not entirely certain on how to revert back to the previously saved index page, or if restoring that version is everything I need to do (maybe the problem is somewhere else?). I found out there is no error log file. I just installed the Error Log Viewer plugin and am not receiving a log just yet.

The website index page is broken only on the HTTP version:

The HTTPS works fine:

The company I work for decided that I am now the "website owner", but will not grant access to the FTP files. The index page looks like the theme or CSS is broken. I do have Backup Buddy installed and I am not entirely certain on how to revert back to the previously saved index page, or if restoring that version is everything I need to do (maybe the problem is somewhere else?). I found out there is no error log file. I just installed the Error Log Viewer plugin and am not receiving a log just yet.

The website index page is broken only on the HTTP version: http://www.perfect365

The HTTPS works fine: https://www.perfect365

Share Improve this question asked Nov 12, 2018 at 19:23 Krista McAulayKrista McAulay 1 2
  • Check the console, there are some 404 errors. You could activate a different theme through wp-admin to see if it's possibly a theme issue, and you can deactivate plugins to see if it's them. If you can't solve it that way, they're just going to have to provide FTP access or live with a broken site. Also, it's not good to be able to access a site through both http and https - you need to be able to edit .htaccess to force SSL. As a workaround you could try a plugin that forces SSL. – WebElaine Commented Nov 12, 2018 at 19:34
  • The key here was forcing HTTPS. I downloaded Force HTTPS and that fixed the issue. I really need the team to make the real change on the files instead of being reliant on a plug in. Thanks so much for your help. – Krista McAulay Commented Nov 12, 2018 at 20:02
Add a comment  | 

1 Answer 1

Reset to default 2

Even though your subsequent comments indicate the problem was fixed, you didn't mention 'how' you fixed the problem.

So I have added this answer for anyone else wandering by this question.

But if the issue is not forcing HTTPS, then this is more properly done with settings in your HTACCESS file (which someone with file access will have to do).

A generic htaccess fix is:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 

This will rewrite all requests to HTTPS, no matter what URL is requested. It should be placed at the top of your htaccess file, before the WordPress block.

Post a comment

comment list (0)

  1. No comments so far