Installation Errors

Forum
Last Post
Threads / Messages

galaxianovamon

ChibiFur Queen
Member
Joined
Nov 7, 2014
Messages
83
Points
6
Location
England
Mysidian Dollar
0
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.

Code:
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:
Code:
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:
Code:
<?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_');
 
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.
 
Last edited:
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.
 
Last edited:
Yeah, it should be:
Code:
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. I think it'll be:

PHP:
$this->root = "/home/chibifurs/public_html/";
 
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
 
Last edited:
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.
 
Last edited:
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.
 
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.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top