Log in

View Full Version : Installation Errors


AndromedaKerova
04-18-2015, 02:54 PM
I'm having serious trouble installing the site and getting it to work properly.

I had a site before but I was stuck offline too long and it was deleted.

I tried to reinstall it and it told me everything was fine but I just get errors.

Warning: require(home/chibifurs.elementfx.com/inc/smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/chibifu2/public_html/classes/class_mysidia.php on line 326

Warning: require(home/chibifurs.elementfx.com/inc/smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/chibifu2/public_html/classes/class_mysidia.php on line 326

Fatal error: require(): Failed opening required 'home/chibifurs.elementfx.com/inc/smarty/Smarty.class.php' (include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') in /home/chibifu2/public_html/classes/class_mysidia.php on line 326

This is what's in my class_mysidia:
public function getTemplate(){
$templateClass = "inc/smarty/Smarty.class.php";
require $this->path->getRoot().$templateClass;

$this->template = new Template($this->path);
Registry::set(new String("template"), $this->template, TRUE, TRUE);
return $this->template;
}

My config is here:
<?php
//Mysidia Adoptables Site Configuration File

**Database info omitted**
define('DOMAIN', 'chibifurs.elementfx.com'); //Your domain name (No http, www or . )
define('SCRIPTPATH', 'chibifurs.elementfx.com/inc'); //The folder you installed this script in
define('PREFIX', 'adopts_');

Kyttias
04-18-2015, 05:07 PM
Your scriptpath is wrong.

If your site was at www.yoursite.com/chibifurs, then your scriptpath would be 'chibifurs' and that's it. If your site was at www.yoursite.com, your scriptpath would be ''. That is, empty. In no case would your scriptpath ever include a url or a .com. You don't even need a slash before the name of the folder if it were in a folder. I don't think your site is being stored inside a folder, however, at all - and this is fine, normal and common. It should just be left blank.

Or, basically, with the setup you have now your site is looking for itself at http://chibifurs.elementfx.com/chibifurs.elementfx.com/inc/index.php.

AndromedaKerova
04-18-2015, 05:14 PM
So I should replace it with this: define('SCRIPTPATH', ''); //The folder you installed this script in

That didn't make any difference except the first line which was identicle to the second disappeared. It still throws out the second and third messages.

Tried it blank, /inc and inc and it's just doing the above.

Kyttias
04-18-2015, 05:21 PM
Yeah, it should be:

define('DOMAIN', 'chibifurs.elementfx.com'); //Your domain name (No http, www or . )
define('SCRIPTPATH', ''); //The folder you installed this script in
define('PREFIX', 'adopts_');
?>


I think you've got that much correct now.

And you didn't say what you're hosting was, but if it's x10 hosting, you will need to follow the instructions in this post (http://www.mysidiaadoptables.com/forum/showthread.php?t=4763). I think it'll be:

$this->root = "/home/chibifurs/public_html/";

AndromedaKerova
04-18-2015, 05:31 PM
I'd already set the root to exactly that when I was attempting to fix it myself.
None of what I've seen and attempted so far has made any difference except to remove the duplicated first error.

Its the same hoster as last time. x10

Kyttias
04-18-2015, 05:36 PM
Ok, well, taking a closer look:

Warning: require(/home/chibifurs/public_html/inc/smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/chibifu2/public_html/classes/class_mysidia.php on line 326

Those should, obviously, match. Change everything that uses chibifurs to chibifu2 in all the files we've touched so far.

AndromedaKerova
04-18-2015, 05:43 PM
Well you've done it again you code queen you!
See? You even get pink letters for that. <3

My site is sort of there. Ugly as sin but hey ho, I was expecting that.
I know I followed every step correctly so the errors really confused the heck out of me.

Hopefully this will help someone else having similar problems.

Now to fiddling with mods and stuff. Especially adding the ones you came up with. They are exactly the kind of alterations I envisioned when I thought up Chibifurs.

Kyttias
04-18-2015, 05:44 PM
Great! :usedusedused: I'm glad everything worked out.

AndromedaKerova
04-18-2015, 05:47 PM
You'll be listed in the credits page when I get around to that of course. I'm just that kind of person who has to credit people for their inputs when I have a working site.