• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Wrong path (Godaddy)

Status
Not open for further replies.

kastrup92

Chevereto Member
I'm having some problems with my installation
The website comes up without the default theme, so it basically plaintext
When I look at the html code on the website it point it files to http://website.com/folder/content/themes/Peafowl/style.css instead of http://website.com/content/themes/Peafowl/style.css where it actually lies.

I suspect this to be a problem with Godaddy, since it uses shared hosting (primary website folder>secondary website folder) where my image host is in an secondary website folder)
And it actually works if I go to www.primarywebsite.com/imagehostfolder/ instead of www.imagehost.com

So anyone got a solution to this? I couldn't find it in the forum
 
This is due because of this weird server setups, most of well configured webhost don't have this issue.
Anyway, to fix this you need to open the includes/config.php file and go to the botom, change this:

PHP:
define('__CHV_RELATIVE_ROOT__', str_ireplace(rtrim(str_replace('\\','/', realpath($_SERVER['DOCUMENT_ROOT'])), '/'), '', __CHV_ROOT_DIR__));

To this:
PHP:
define('__CHV_RELATIVE_ROOT__', '/');
 
Rodolfo said:
This is due because of this weird server setups, most of well configured webhost don't have this issue.

Yeah I know. I been having troubles with pretty much all my websites since I changed to Godaddy.
But that did the trick, thanks :D
 
Rodolfo said:
This is due because of this weird server setups, most of well configured webhost don't have this issue.
Anyway, to fix this you need to open the includes/config.php file and go to the botom, change this:

PHP:
define('__CHV_RELATIVE_ROOT__', str_ireplace(rtrim(str_replace('\\','/', realpath($_SERVER['DOCUMENT_ROOT'])), '/'), '', __CHV_ROOT_DIR__));

To this:
PHP:
define('__CHV_RELATIVE_ROOT__', '/');

It seems like this solution break the website.com/about, contact etc page redirect.. Anyway to fix this or to set it manual?
 
/about is not a redirect is a rewrite rule. Maybe gogaddy also have issues with htaccess?
 
Rodolfo said:
What is the displayed error?

Code:
Not Found

The requested URL /contact was not found on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at "website".com Port 80
 
That is a mod rewrite error. It seems that godaddy don't support mod_rewrite.
 
It's hard to tell... The thing is that godaddy always have issues with everyone, mostly because of weird and non standar server setups.

The handler.class.php handles all the request in Chevereto. For instance, the pages.
If you look at this: http://www.yoursite.com/error-javascript it returns a 500 error, which is a server error (but sometimes is because php code)

But, the error-javascript triggers this:
PHP:
case 'error-javascript':
     chevereto_die(...);
break;

Look this at the demo: http://demo.chevereto.com/error-javascript and compare it with your site.

But, the defenitive proof of the server error is this:
http://www.yoursite.com/api

That in Chevereto is a direct .htaccess rule, no index.php involved. So it's likely that mod_rewrite isn't working on your site.

PS: I have replaced your site with "yoursite.com" for discretion.
 
Well I seem to have figured out some sort of solution..

Adding
Code:
RewriteBase /
to the end of the .htaccess file seems to fix the broken about/contact/etc pages

it also makes yoursite.com/api returns an 404 error
so for now I'm yoursite.com/api.php

it's probably isn't the best solution, but I can't get any help from Godaddy (they say it's an configuration error).
so until I get time to learn about the .htaccess file this will have to do :/
 
Status
Not open for further replies.
Back
Top