theme not loading on subdomain

Started by aswuser, June 09, 2021, 07:09:57 PM

Previous topic - Next topic

aswuser

I made a copy of my forum on a subdomain with the intent of running upgrade from  from 1.1.21 to 2.0.17.

The forum appears to run but the theme(s) are not loading.

I have checked the paths and they are correct. I've tried including ending (/), leaving it off. No change. I don't know what else to try.

repair_settings.php does not run properly - it stops after path to attachments - no update button or whatever is on the bottom of the page.  Forum is here:

https://forum.schoolofevolutionaryastrology.com



shawnb61

You can view the console & see errors by opening developer tools in your browser - on most browsers, you do this by pressing F12.

If you look at the console, you are getting this error message:
QuoteThe resource from "https://forum.schoolofevolutionaryastrology.com/forum/Themes/EA/style.css" was blocked due to MIME type ("text/html") mismatch (X-Content-Type-Options: nosniff).

A quick google search says that usually means the file is missing...  Does that file exist?  Are you sure all files were copied over?
A question worth asking is born in experience & driven by necessity. - Fripp

shawnb61

If the files exist, the next thing to look at is the setting "X-Content-Type-Options: nosniff".  See if your web folks can disable that.  (Also based on a quick google search...)
A question worth asking is born in experience & driven by necessity. - Fripp

aswuser

QuoteThe resource from "https://forum.schoolofevolutionaryastrology.com/forum/Themes/EA/style.css" was blocked

Well that path is wrong. There is an extra :forum: in it. Where is it getting it from? I have in my settings:


$boardurl = 'https://forum.schoolofevolutionaryastrology.com'; # URL to your forum's folder. (without the trailing /!)
$boarddir = '/home/school10/public_html/forumnew'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/school10/public_html/forumnew/Sources'; # Path to the Sources directory.


and for theme settings:

QuoteTheme directory (templates): /home/school10/public_html/forumnew/Themes/EA
URL to above directory: https://forum.schoolofevolutionaryastrology.com/Themes/EA
URL to images directory: https://forum.schoolofevolutionaryastrology.com/Themes/EA/images

shawnb61

Best guess is you have an (unwanted?) redirect in there.  Pretty common for subdomains to redirect to a folder.

I would check cPanel for redirects.  If none found, check all of your .htaccess files.
A question worth asking is born in experience & driven by necessity. - Fripp

aswuser

Ah. I found it. Path was hardcoded in index.template.php. 

Thanks for your help. Without it, I would have been permanently stuck.

Advertisement: