Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Locally my site is working well, but not on the host server

Started by Muut Archive 11 years ago · 19 replies · 453 views
11 years ago

I got a result giving me impression that something goes wrong with loading .css files. I got <link href="/user/themes/agency/css-compiled/global.css" type="text/css" rel="stylesheet" /> <link href="/user/themes/agency/css/font-awesome/css/font-awesome.min.css" type="text/css" rel="stylesheet" /> <script src="/system/assets/jquery/jquery-2.1.4.min.js" type="text/javascript" ></script> ... in my web browser. Thanks for your thoughts!

11 years ago

I'm not really following. What's wrong with those <link> and <script> tags?

11 years ago

I see all of them in the web browser instead of rendered content with applied styles.

11 years ago

Can you provide a URL I can inspect with my web browser tools?

11 years ago

I think you may have forgot to upload the .htaccess on the server

11 years ago

Here is an actual location of this website: http://pppmyslowice.pl/... I will appreciate if you open it and see if you can determine what can be a potential issue. Thanks!

11 years ago

Do you have twig escaping on? If so turn it off.

11 years ago

Unfortunately it does not help in my case.

11 years ago

If you view the source of your pages, you will see 'some' html stuff output properly and some escaped with HTML entities. I'm not sure what is doing this on your site if the same code works locally.

11 years ago

Exactly, locally the page looks and works as expected. The 1:1 copy uploaded to the hosted server not:/ Let me dig it more...

11 years ago

Same here! on my local NAS it works fine, when i host it online there's nothing. Only a few HTML lines but just an empty page.

11 years ago

I found the following error. i have no idea what to do though ...:
[Tue Oct 13 09:18:25 2015] [error] PHP Fatal error: Class 'DebugBar\DataCollector\PhpInfoCollector' not found in /var/www/vhosts/40/173626/webspace/httpdocs/berendholtland.nl/vendor/m aximebf/debugbar/src/DebugBar/StandardDebugBar.php on line 27

11 years ago

Try running composer update in the grav folder

11 years ago

@Berend what output to you get for your page? You mention "a few html lines", post them here

11 years ago

Thanks for the quick reply! @flaviocopes, should i do this through an SSH connection? Now that i look even closer to the output, it doesn't have any. Just the standard "body" from Google Chrome.

11 years ago

Since it's on Shared hosting, i'm not allowed to connect through SSH

11 years ago

@mikeef
I see you got it working.

Bardzo fajna adaptacja szablonu Agency. Powodzenia :)

11 years ago

I'm now running composer update on my local server. I will then transfer the files to the shared hosting. Hope that works :)

11 years ago

Okay, i downloaded a fresh instance of Grav and put it on my shared hosting (with the idea of manually adding the "page" folders. When i reloaded the page in Chrome, everything was there!! I don't know how i did it, but it works now :D. Thanks for thinking with me.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1344 9 years ago
Archive · by Muut Archive, 9 years ago
2 930 9 years ago
Archive · by Muut Archive, 9 years ago
2 4058 9 years ago
Archive · by Muut Archive, 9 years ago
1 2943 9 years ago
Archive · by Muut Archive, 9 years ago
3 1116 9 years ago