Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Community Board > Feedback and Suggestions

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2014, 05:36 PM
Skaiya Skaiya is offline
Member
 
Join Date: Mar 2014
Location: Netherlands
Posts: 40
Gender: Female
Credits: 7,189
Skaiya is on a distinguished road
Question class_Mysidia.php can't find Smarty.class.php [SOLVED]

So as I saw on the forum before people are having trouble with this but I can't seem to find my solution between them.

I'll just post what I have.

Error:
PHP Code:
Warning: require(/home/***/domains/***.com/public_html/pixel%20pets/inc/smarty/Smarty.class.php) [function.require]: failed to open stream: No such file or directory in /home/deb71910/domains/samanthamook.com/public_html/pixel pets/classes/class_mysidia.php on line 326

Fatal error: require() [function.require]: Failed opening required '/home/***/
domains/***.com/public_html/pixel%20pets//inc/smarty/Smarty.class.php' (include_path='.:/usr/local/lib/php') in /home/***/domains/***.com/public_html/pixel pets/classes/class_mysidia.php on line 326 
Codes:
class_mysidia.php
PHP Code:
    public function getTemplate(){
        
$templateClass "inc/smarty/Smarty.class.php";
        require 
$this->path->getRoot().$templateClass
config.php
PHP Code:
<?php
//Mysidia Adoptables Site Configuration File

define('DBHOST''localhost');             //DB Hostname
define('DBUSER''***');             //DB Username
define('DBPASS''***!');             //DB Password
define('DBNAME''***');             //Your database name
define('DOMAIN''***.com');             //Your domain name (No http, www or . )
define('SCRIPTPATH''/pixel%20pets');     //The folder you installed this script in
define('PREFIX''adopts_');
?>
I am clueless here.

Last edited by Skaiya; 03-29-2014 at 01:24 PM.
Reply With Quote
  #2  
Old 03-28-2014, 05:40 PM
Skaiya Skaiya is offline
Member
 
Join Date: Mar 2014
Location: Netherlands
Posts: 40
Gender: Female
Credits: 7,189
Skaiya is on a distinguished road
Default

I think I misplaced this I am sorry D:
I wanted to post it in Questions and Support
Reply With Quote
  #3  
Old 03-29-2014, 02:59 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 87,060
Kyttias is on a distinguished road
Default

I can't quite remember, but I think this can be caused by a number of things. I'm mostly concerned here with the "%20" I keep seeing. Spaces and underscores are not the same thing, and URLs can't contain spaces. Make sure every instance of %20 gets properly replaced with an underscore _ and see if that helps?
Reply With Quote
  #4  
Old 03-29-2014, 06:31 AM
Skaiya Skaiya is offline
Member
 
Join Date: Mar 2014
Location: Netherlands
Posts: 40
Gender: Female
Credits: 7,189
Skaiya is on a distinguished road
Default

Quote:
Originally Posted by Kyttias View Post
I can't quite remember, but I think this can be caused by a number of things. I'm mostly concerned here with the "%20" I keep seeing. Spaces and underscores are not the same thing, and URLs can't contain spaces. Make sure every instance of %20 gets properly replaced with an underscore _ and see if that helps?
I pretty much reinstalled it and just called my folder pixelpets instead of pixel pets.
So now there is no %20 that can make any mistakes.
Though thanks to you I renamed my folder.

Thanks for your help!
Reply With Quote
  #5  
Old 03-29-2014, 07:11 AM
Skaiya Skaiya is offline
Member
 
Join Date: Mar 2014
Location: Netherlands
Posts: 40
Gender: Female
Credits: 7,189
Skaiya is on a distinguished road
Default

I now have this problem..

Warning: Cannot modify header information - headers already sent by (output started at /home/***/domains/***.com/public_html/pixelpets/classes/class_cookies.php:112) in /home/***/domains/***.com/public_html/pixelpets/classes/class_view.php on line 257

But it doesn't seem to be doing any harm.

Last edited by Skaiya; 03-29-2014 at 07:26 AM.
Reply With Quote
  #6  
Old 03-29-2014, 08:20 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,910
Hall of Famer is on a distinguished road
Default

umm did you fix the fatal error already? Most smarty errors are resulted from incorrect configuration at installation, so open your inc/config.php file and see if theres something wrong in that file. Hope this helps.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #7  
Old 03-29-2014, 10:21 AM
Skaiya Skaiya is offline
Member
 
Join Date: Mar 2014
Location: Netherlands
Posts: 40
Gender: Female
Credits: 7,189
Skaiya is on a distinguished road
Default

Quote:
Originally Posted by Hall of Famer View Post
umm did you fix the fatal error already? Most smarty errors are resulted from incorrect configuration at installation, so open your inc/config.php file and see if theres something wrong in that file. Hope this helps.
Ah yes I fixed the fatal error.
I changed the folders name so it doesn't have %20 which did the trick.
Reply With Quote
  #8  
Old 03-30-2014, 01:45 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,910
Hall of Famer is on a distinguished road
Default

I see, thats so great to know, congratulations. Yeah the script does not work quite well with empty spaces at times, it happens when you see these %20s.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
smarty questions Kyttias Questions and Supports 12 06-20-2014 10:41 PM
Problem: smarty class 1.3.4 draugluin Questions and Supports 8 11-15-2013 02:29 AM
||Random codes you might find usefulell|| Poppy Tutorials and Tips 6 11-07-2011 05:12 PM
How do i find my new themes URL? RipJawWolfFang Questions and Supports 12 05-18-2009 04:39 PM
is there anyway to find out how many times someone has clicked adoptables? aroymart Questions and Supports 4 04-13-2009 03:36 PM


All times are GMT -5. The time now is 09:49 AM.

Currently Active Users: 678 (0 members and 678 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