Page 1 of 2
Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 10:24 pm
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
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 10:26 pm
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.
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 10:35 pm
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
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 11:03 pm
by Nullig
Is the root url correct (not path, but url)?
And the image upload path and url?
Nullig
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 11:06 pm
by duplay
yes - it looks correct off of the php file you had me create. I am stumped on the other error!
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 11:08 pm
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
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 11:25 pm
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
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 11:29 pm
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"];
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 11:34 pm
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
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 11:38 pm
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
Re: Godaddy.com root URL path? Help!
Posted: Fri May 16, 2008 11:56 pm
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://")
Re: Godaddy.com root URL path? Help!
Posted: Sat May 17, 2008 12:05 am
by duplay
Made the changes, clicked the browse button and see attached (is this how the new version should look? No upload button?)
Re: Godaddy.com root URL path? Help!
Posted: Sat May 17, 2008 12:15 am
by Nullig
So you've changed the code to:
$path = dirname(dirname(dirname(__FILE__)));
require_once($path . DIRECTORY_SEPARATOR . 'include.php');
Nullig
Re: Godaddy.com root URL path? Help!
Posted: Sat May 17, 2008 12:17 am
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).
Re: Godaddy.com root URL path? Help!
Posted: Sat May 17, 2008 12:17 am
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"];