Are 2 script paths possible?

Forum
Last Post
Threads / Messages

krazykat1980

Member
Member
Joined
May 5, 2014
Messages
22
Points
0
Mysidian Dollar
0
Are 2 script paths possible? And strange errors...

I'm having an interesting problem here... I had a domain I wasn't using and my hosting account on Godaddy lets me have multiple domains on the same account. I set up my extra account so that my 'adoptables' folder is the root (in other words if you type in my url it goes straight there). The problem is, if I don't include the script path (/adoptables) in config.php I get script errors... but when I do my admin cp gets errors... and the site doesn't look right... like all the design elements are missing or something

Is there a way to set in config.php for the script to check 2 paths instead of the one? I'm thinking that might work... set it to blank path and /adoptables...


Errors I'm getting at the moment on the admin cp:
Code:
Fatal error: Uncaught exception 'LanguageException' with message 'Language var default does not exist.' in 
/home/content/43/10587843/html/adoptables/classes/class_language.php:68 Stack trace: #0 /home/content/43/10587843
/html/adoptables/admincp/view/admincpview.php(18): Language->__get('default') #1 /home/content/43/10587843
/html/adoptables/classes/class_frontcontroller.php(100): AdminCPView->index() #2 /home/content/43/10587843
/html/adoptables/admincp/index.php(109): FrontController->render() #3 /home/content/43/10587843/html/adoptables
/admincp/index.php(113): AdminCP::main() #4 {main} thrown in /home/content/43/10587843/html/adoptables/classes
/class_language.php on line 68

If I specifically point my browser to mysite.com/adoptables/admincp I get these errors:
Code:
Warning: require(../classes/class_loader.php) [function.require]: failed to open stream: No such file or directory in
 /home/content/43/10587843/html/adoptables/classes/class_initializer.php on line 103

Fatal error: require() [function.require]: Failed opening required '../classes/class_loader.php' (include_path='.:/usr/local/php5_3
/lib/php') in /home/content/43/10587843/html/adoptables/classes/class_initializer.php on line 103


When I go and comment out that line in class_language.php the admin page then loads - but looks cruddy just like the main part of the adoptables site.... but any links on the page get this error:
Code:
Fatal error: Uncaught exception 'Exception' with message 'Fatal Error: Class Registry either does not exist, or has its
 include path misconfigured!' in /home/content/43/10587843/html/adoptables/classes/class_loader.php:83 Stack trace: #0
 [internal function]: Loader->load('Registry') #1 /home/content/43/10587843/html/adoptables/classes
/class_initializer.php(106): spl_autoload_call('Registry') #2 /home/content/43/10587843/html/adoptables/classes
/class_initializer.php(45): Initializer->initialize() #3 /home/content/43/10587843/html/adoptables/index.php(68):
 Initializer->__construct() #4 /home/content/43/10587843/html/adoptables/index.php(78): IndexController::main() #5 {main}
 thrown in /home/content/43/10587843/html/adoptables/classes/class_loader.php on line 83

And for the heck of it.... when I comment out that line in class_loader.php I get these errors:
Code:
Warning: require(../classes/class_loader.php) [function.require]: failed to open stream: No such file or directory in
 /home/content/43/10587843/html/adoptables/classes/class_initializer.php on line 103

Fatal error: require() [function.require]: Failed opening required '../classes/class_loader.php' (include_path='.:/usr/local/php5_3
/lib/php') in /home/content/43/10587843/html/adoptables/classes/class_initializer.php on line 103

I tried pointing my domain at root instead of using the 'adoptables' folder as root, but then it still didn't work quite right and then you could access the page from 2 urls which I didn't like (this-site.com/adoptables and site-2.com/adoptables)

So I think if I could tell it to check 'root' and 'adoptables' it might work since half of it works one way and half the other..... or something.... if you want to see what I mean by looks cruddy you can peek at http://fixmyfarmville.com/ (farmville broke too bad to even bother building the site and I've been paying for this domain for like 5 years without using it... figured I might as well use it to experiment with this lol)

I'm using Mysidida Adoptables 1.3.4

Of course Godaddy couldn't have made it EASY to run more than one domain on the same account.... jeez....
 
Last edited:
Adding www. in the address bar gets rid of the class_language.php error and the page loads but we still look cruddy

Why do I need the www. in the address bar for the admin cp but not for the main part of the site?

Also, when I get that loaded and try to use a link from the admin cp it adds an extra 'adoptables' to the url because Godaddy is already adding it and doesn't work... because of it being a secondary domain with 'adoptables' as it's root (I think...?).

.com/adoptables/adoptables/admincp/adopt/add

Either I need 2 script paths, I need to edit some code by hand somewhere, or add something extra to a htaccess file or something
 
Last edited:
now the www doesn't fix it.... so it's an intermittent thing.... like always.... for once can't I have an easy to solve problem? lol

I came across this script while I was working on my other site, and since I've been planning a pet site I decided to grab it and check it out... 24 hours later I still can't get it working and I haven't done a thing with my other site lol... guess I better take a break before I punch my computer and hope someone here can help me figure it out
 
Code:
Warning: getimagesize(http://fixmyfarmville.com/adoptables/templates/icons/fr.gif) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/content/43/10587843/html/adoptables/classes/class_image.php on line 114


Perfect example of my problem....

opening this link:
Code:
http://fixmyfarmville.com/adoptables/templates/icons/fr.gif
gives me this error:
Code:
Fatal Error: Class TemplatesController either does not exist, or has its include path misconfigured!


Go to:
Code:
http://fixmyfarmville.com/templates/icons/fr.gif
And the picture loads fine...

If I remove '/adoptables' from the 'Script Path' in config.php I get smarty and config missing errors....

Please can't someone help me? I've tried reuploading and reinstalling several times (which takes about 2 hours on dialup) and I've read probably half this forum, and spent hours searching google....
 
So no one knows where I would need to change urls in the code or an edit for my htaccess file that would solve this?
 
Yea, I have no idea friend. I am in need of some help too that no one has seen yet lol.
 
Sorry, I guess HOF could help more with this than any other. You can try messing around with the pathes in class_template.php, class_initializer.php and class_header.php maybe?
 
I assume that would be these bits?
Code:
    public function loadStyle($style){
	    $this->addStyle($style);
        return "<link rel='stylesheet' href='{$style}' type='text/css'/>\n";		
    }

I don't understand how it's putting the link together so I'm not sure where to put my edit :(


This looks promising but I don't know what to do to it :(

Code:
 	/**
	 * The css property, it specifies the additional css folder to load.
	 * @access private
	 * @var String
    */	
    private $css;
 
Last edited:
Check the new latest thread I made lol. And wait so why do you need two paths tho? What's the purpose of it?
 
Being a secondary domain in some places it's looking for a folder that doesn't exist....

Code:
http://fixmyfarmville.com/adoptables/templates/icons/fr.gif


doesn't exist because the root of fixmyfarmville.com IS the 'adoptables' folder... the proper link is
Code:
http://fixmyfarmville.com/templates/icons/fr.gif


But this works because this is the direct server path
Code:
/home/content/43/10587843/html/adoptables/classes/class_loader.php


If I remove '/adoptables' from config.php then that one doesn't work because this doesn't exist
Code:
/home/content/43/10587843/html/classes/class_loader.php
 
Last edited:
Well your script path should definitely contain 'adoptables/', although Id say the root directory should always be 'public_html' for linux hosting system. I think what you are trying to do is to access your site at 'fixmyfarmville.com', but not 'fixmyfarmville.com/adoptables'. In this way you just have to upload the files inside the '/adoptables' to your root directory, if these files are inside '/adoptables' you can only access it through 'fixmyfarmville.com/adoptables'.

So your choice is either to extract all files from folder '/adoptables' to its parent directory, or to get an addon domain and point it to the directory '/adoptables'. For instance my domain mysidiaadoptables.com is an addon domain itself, which points to a directory in the primary domain mysidiarpg.com. You can access it through both mysidiaadoptables.com, or mysidiarpg.com/adoptables. But to do this you need a different domain.
 
fixmyfarmville IS an addon (secondary) domain pointed at 'adoptables' (the primary domain is trueidiocy.us)... that's what is causing the problem I think... godaddy is treating 'adoptables' as the root of fixmyfarmville.com.... although I CAN access the index page from fixmyfarmville.com/adoptables or just fixmyfarmville.com ... but for some reason
Code:
http://fixmyfarmville.com/adoptables/templates/icons/fr.gif
gives me this error:
Fatal Error: Class TemplatesController either does not exist, or has its include path misconfigured!

while
Code:
http://fixmyfarmville.com/templates/icons/fr.gif
works just fine

So anything pointing to the .com needs to not have 'adoptables', while everything pointing to server root (var/html or whatever it was) does need it
 
Last edited:
HEY!!!!!!!!! If I go change {$root} to '/' in the template the image shows up!!! I finally found something.... I have the 'left' image on the 'elements' theme now!!!
 

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

Latest Posts

Top