Godaddy.com root URL path? Help!

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm
Location: Canton, Ohio

Godaddy.com root URL path? Help!

Post by duplay »

I have a CMSMS site installed on godaddy and I dont think the paths for the uploads or root are set right in my config.php (see pic).  When I install sites on my server, these usually point to the path the files sit, but not sure how to do this for godaddy.

Thoughts?

MJD
Attachments
Picture 4.png
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Godaddy.com root URL path? Help!

Post by calguy1000 »

place a file in your root directory called getcwd.php
with these contents:




then browse to that url
it will tell you if the path is correct.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm
Location: Canton, Ohio

Re: Godaddy.com root URL path? Help!

Post by duplay »

Thanks that show'd me the root was correct but still doesnt explain to me why my fresh install doesnt allow me to use the image install "browse" button. see pic
Attachments
CMS ERROR.png
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Godaddy.com root URL path? Help!

Post by Nullig »

Is the root url correct (not path, but url)?

And the image upload path and url?

Nullig
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm
Location: Canton, Ohio

Re: Godaddy.com root URL path? Help!

Post by duplay »

yes - it looks correct off of the php file you had me create. I am stumped on the other error!
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm
Location: Canton, Ohio

Re: Godaddy.com root URL path? Help!

Post by duplay »

let me know if you want me to copy you my config files. this is the error I get when i click on the image insert/browse:

Warning: main(//include.php): failed to open stream: No such file or directory in /home/content/K/e/l/Keldaria/html/modules/TinyMCE/filepicker.php on line 4

Fatal error: main(): Failed opening required '//include.php' (include_path='.:/usr/local/lib/php') in /home/content/K/e/l/Keldaria/html/modules/TinyMCE/filepicker.php on line 4

I have read write access to both the filepicker.php (in the path above) and I have a include.php in my root and one in the same as the filepicker.php
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Godaddy.com root URL path? Help!

Post by Nullig »

What happens if you change line 4 of filepicker.php to show the full url to include.php, i.e. "http://yoursite.com/include.php".

Nullig
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm
Location: Canton, Ohio

Re: Godaddy.com root URL path? Help!

Post by duplay »

these are the lines from my filepicker.php file: (where would I place the url?) the site url is www.masonryservicescorp.com

modules;
$tiny=$modules["TinyMCE"]['object'];
global $config;
$rootpath=""; $rooturl="";
if ($_GET["type"]=="image") {
$rootpath=$config["image_uploads_path"];
$rooturl=$config["image_uploads_url"];
} else {
  $rootpath=$config["uploads_path"];
  $rooturl=$config["uploads_url"];
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Godaddy.com root URL path? Help!

Post by Nullig »

Try changing:

require_once($path . DIRECTORY_SEPARATOR . 'include.php');

to:

require_once('http://www.masonryservicescorp.com/include.php');

or:

require_once('/include.php');

Nullig
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm
Location: Canton, Ohio

Re: Godaddy.com root URL path? Help!

Post by duplay »

getting closer.....

this is the new error when i select the browse button

Fatal error: Call to undefined function: check_login() in /home/content/K/e/l/Keldaria/html/modules/TinyMCE/filepicker.php on line 5
Wiedmann
Forum Members
Forum Members
Posts: 233
Joined: Wed Mar 26, 2008 1:49 am
Location: Stuttgart / Germany

Re: Godaddy.com root URL path? Help!

Post by Wiedmann »

Code: Select all

$path = dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])));
I would change this to

Code: Select all

$path = dirname(dirname(dirname(__FILE__)));
and let us see the error message, if any.

(BTW: this PHP script can't be included with "http://")
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm
Location: Canton, Ohio

Re: Godaddy.com root URL path? Help!

Post by duplay »

Made the changes, clicked the browse button and see attached (is this how the new version should look? No upload button?)
Attachments
Picture 5.png
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Godaddy.com root URL path? Help!

Post by Nullig »

So you've changed the code to:

$path = dirname(dirname(dirname(__FILE__)));
require_once($path . DIRECTORY_SEPARATOR . 'include.php');

Nullig
Wiedmann
Forum Members
Forum Members
Posts: 233
Joined: Wed Mar 26, 2008 1:49 am
Location: Stuttgart / Germany

Re: Godaddy.com root URL path? Help!

Post by Wiedmann »

(is this how the new version should look? No upload button?)
I'm using "TinyMCE-2.4.0b4". And that's like my filepicker (insert image) also looks like (and it's working).
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm
Location: Canton, Ohio

Re: Godaddy.com root URL path? Help!

Post by duplay »

this what the default code was changed to:

modules;
$tiny=$modules["TinyMCE"]['object'];
global $config;
$rootpath=""; $rooturl="";
if ($_GET["type"]=="image") {
$rootpath=$config["image_uploads_path"];
$rooturl=$config["image_uploads_url"];
} else {
  $rootpath=$config["uploads_path"];
  $rooturl=$config["uploads_url"];
Locked

Return to “[locked] Installation, Setup and Upgrade”