Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2014, 04:14 AM
krazykat1980 krazykat1980 is offline
Member
 
Join Date: May 2014
Posts: 22
Gender: Female
Credits: 1,305
krazykat1980 is on a distinguished road
Exclamation 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 by krazykat1980; 05-06-2014 at 05:46 AM.
Reply With Quote
  #2  
Old 05-06-2014, 04:58 AM
krazykat1980 krazykat1980 is offline
Member
 
Join Date: May 2014
Posts: 22
Gender: Female
Credits: 1,305
krazykat1980 is on a distinguished road
Default

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 by krazykat1980; 05-06-2014 at 05:48 AM.
Reply With Quote
  #3  
Old 05-06-2014, 06:20 AM
krazykat1980 krazykat1980 is offline
Member
 
Join Date: May 2014
Posts: 22
Gender: Female
Credits: 1,305
krazykat1980 is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 05-07-2014, 07:15 AM
krazykat1980 krazykat1980 is offline
Member
 
Join Date: May 2014
Posts: 22
Gender: Female
Credits: 1,305
krazykat1980 is on a distinguished road
Default

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....
Reply With Quote
  #5  
Old 05-10-2014, 07:11 AM
krazykat1980 krazykat1980 is offline
Member
 
Join Date: May 2014
Posts: 22
Gender: Female
Credits: 1,305
krazykat1980 is on a distinguished road
Default

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?
Reply With Quote
  #6  
Old 05-10-2014, 09:00 AM
PokeFerno PokeFerno is offline
Member
 
Join Date: May 2014
Posts: 31
Gender: Male
Credits: 4,570
PokeFerno is on a distinguished road
Default

Yea, I have no idea friend. I am in need of some help too that no one has seen yet lol.
Reply With Quote
  #7  
Old 05-10-2014, 09:24 AM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,551
IntoRain is on a distinguished road
Default

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?
__________________


asp.net stole my soul.
Reply With Quote
  #8  
Old 05-10-2014, 09:38 AM
krazykat1980 krazykat1980 is offline
Member
 
Join Date: May 2014
Posts: 22
Gender: Female
Credits: 1,305
krazykat1980 is on a distinguished road
Default

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 by krazykat1980; 05-10-2014 at 09:42 AM.
Reply With Quote
  #9  
Old 05-10-2014, 10:06 AM
PokeFerno PokeFerno is offline
Member
 
Join Date: May 2014
Posts: 31
Gender: Male
Credits: 4,570
PokeFerno is on a distinguished road
Default

Check the new latest thread I made lol. And wait so why do you need two paths tho? What's the purpose of it?
Reply With Quote
  #10  
Old 05-10-2014, 11:33 AM
krazykat1980 krazykat1980 is offline
Member
 
Join Date: May 2014
Posts: 22
Gender: Female
Credits: 1,305
krazykat1980 is on a distinguished road
Default

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 by krazykat1980; 05-10-2014 at 11:39 AM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:48 AM.

Currently Active Users: 743 (0 members and 743 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636