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 02-05-2015, 06:46 PM
zoe's Avatar
zoe zoe is offline
the power of love
 
Join Date: Feb 2015
Location: hell
Posts: 25
Gender: Unknown/Other
Credits: 3,893
zoe is on a distinguished road
Question 'class_initializer.php' issues!

Hello everyone!!
I've installed MAMP and set up the latest Mysidia script. When I launch localhost though I get this error:

PHP Code:
Warning: require(inc/config.php): failed to open streamNo such file or directory in /Applications/MAMP/htdocs/classes/class_initializer.php on line 97

Fatal error
: require(): Failed opening required 'inc/config.php' (include_path='.:/Applications/MAMP/bin/php/php5.6.2/lib/php'in /Applications/MAMP/htdocs/classes/class_initializer.php on line 97 
These are lines 95 through 97 of my class_initializer.php file:

PHP Code:
  private function initialize(){
        
$config "{$this->dir}inc/config.php";
        require 
$config
I think it has to do with the MAMP setup, since ive heard its a lot like WAMP and when you install WAMP you have to mess around with your config.php file a bit. I haven't found any helpful MAMP tutorials though, so I can't be sure.
Reply With Quote
  #2  
Old 02-05-2015, 11:08 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 87,447
Kyttias is on a distinguished road
Default

Confirm you've renamed the config file in the inc folder during installation. It's not named config, you have to rename inc/config_adopts.php to inc/config.php - no matter whether you're installing locally or on a hosted server.



If you get more errors after this step, let me know. Keep referring to my WAMP tutorial, even though you're using MAMP! You may run across a lot of the same errors that need to be fixed in all the same ways - but navigating to where the files you need to edit in MAMP may be different. That's all! ^^;
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 02-05-2015 at 11:10 PM.
Reply With Quote
  #3  
Old 02-06-2015, 07:03 PM
zoe's Avatar
zoe zoe is offline
the power of love
 
Join Date: Feb 2015
Location: hell
Posts: 25
Gender: Unknown/Other
Credits: 3,893
zoe is on a distinguished road
Default

I've installed MAMP just like your tutorial, but Im still getting a load of notices and a fatal error when i enter 127.0.0.1.

PHP Code:
NoticeUndefined variablecontroller in /Applications/MAMP/htdocs/classes/class_language.php on line 111
Notice
Undefined propertyFormRenderer::$thematicBreak in /Applications/MAMP/htdocs/classes/class_guirenderer.php on line 184
Notice
Undefined propertyDocumentRenderer::$thematicBreak in /Applications/MAMP/htdocs/classes/class_guirenderer.php on line 184
Notice
Undefined propertyListRenderer::$thematicBreak in /Applications/MAMP/htdocs/classes/class_guirenderer.php on line 184
Fatal error
Uncaught exception 'SmartyException' with message 'Unable to load template file 'template.tpl'' in /Applications/MAMP/htdocs/inc/smarty/sysplugins/smarty_internal_templatebase.php:127 Stack trace#0 /Applications/MAMP/htdocs/inc/smarty/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('template.tpl', NULL, NULL, NULL, true) #1 /Applications/MAMP/htdocs/classes/class_template.php(135): Smarty_Internal_TemplateBase->display('template.tpl') #2 /Applications/MAMP/htdocs/classes/class_view.php(280): Template->output() #3 /Applications/MAMP/htdocs/classes/class_frontcontroller.php(102): View->render() #4 /Applications/MAMP/htdocs/index.php(74): FrontController->render() #5 /Applications/MAMP/htdocs/index.php(78): IndexController::main() #6 {main} thrown in /Applications/MAMP/htdocs/inc/smarty/sysplugins/smarty_internal_templatebase.php on line 127 
Most of these notices were repeated a lot. Ive changed the php.ini file, by the way!
Reply With Quote
  #4  
Old 02-06-2015, 08:20 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 87,447
Kyttias is on a distinguished road
Default

If error reporting has been turned off in php.ini, the "notices" should not be occurring. Temporarily shut off MAMP, or restart your computer if you don't know how, and turn it back on. Major changes won't go through until the server has been restarted.

As for that particular fatal error, I've only seen that happen when the default theme is changed incorrectly. Did you change the default theme name during installation?

Other people with this error: [ x ], [ x ], [ x ], [ x ]

There is also an off chance your config.php is not filled with the correct information, or that the correct information was not entered during installation.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 02-06-2015 at 08:25 PM.
Reply With Quote
  #5  
Old 02-06-2015, 09:28 PM
zoe's Avatar
zoe zoe is offline
the power of love
 
Join Date: Feb 2015
Location: hell
Posts: 25
Gender: Unknown/Other
Credits: 3,893
zoe is on a distinguished road
Default

I messed a bit the the php.ini file a bit more and managed to fix it, I think. Now when I enter 127.0.0.1 everything is blank, like in x10hosting.

I tried fixing the class_path.php file, by changing the "/home/yoursitename/public_html/" to "/Applications/MAMP/htdocs/" (where the Mysidia files are stored). Nothing happened.

As for the themes, I haven't even touched the templates folder...
Reply With Quote
  #6  
Old 02-06-2015, 09:58 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 87,447
Kyttias is on a distinguished road
Default

Don't change the class_path.php file.

As for the themes, please show me what your default theme for the entire site is by looking in your database under 'adopts_settings', that is, if you didn't change the adopts_ prefix to something else. I'd like to rule this out as a possibility, in case you changed 'main' to something else during installation.

Also, please post your config.php file contents so I can check for errors in the script path (hint: it should be completely empty unless your site is inside a folder inside it's directory). It should look like this (aside from the entries with '------' as those should be filled with relevant data):
define('DBHOST', 'localhost'); //DB Hostname
define('DBUSER', '------'); //DB Username
define('DBPASS', '------'); //DB Password
define('DBNAME', '------'); //Your database name
define('DOMAIN', '127.0.0.1'); //Your domain name (No http, www or . )
define('SCRIPTPATH', ''); //The folder you installed this script in
define('PREFIX', 'adopts_');
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 02-06-2015 at 10:02 PM.
Reply With Quote
  #7  
Old 02-07-2015, 08:49 AM
zoe's Avatar
zoe zoe is offline
the power of love
 
Join Date: Feb 2015
Location: hell
Posts: 25
Gender: Unknown/Other
Credits: 3,893
zoe is on a distinguished road
Default

Okay. I fixed the config.php file back to its original.

By adopts_settings I suppose you mean in the phpMyAdmin. The only line on that file is

PHP Code:
SELECT FROM `adopts_settings
Which is kinda weird since everyone else seems to have a lot of things in there... Sorry, I'm really new to this!!

This is my config.php file:


PHP Code:
define('DBHOST''localhost');             //DB Hostname
define('DBUSER''--------------');             //DB Username
define('DBPASS''--------------');             //DB Password
define('DBNAME''--------------');             //Your database name
define('DOMAIN''127.0.0.1');             //Your domain name (No http, www or . )
define('SCRIPTPATH''');     //The folder you installed this script in
define('PREFIX''adopts_');
?> 
Reply With Quote
  #8  
Old 02-07-2015, 04:56 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 87,447
Kyttias is on a distinguished road
Default

Mine looks like this:


*my theme is Bootstrap, but by default it should be main

If this table in the database is really empty, then the site never even finished installing. Visit http://127.0.0.1/install again, even if you had before, and reinstall the entire thing. You might need to drop the database first, but likely not.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #9  
Old 02-07-2015, 06:09 PM
zoe's Avatar
zoe zoe is offline
the power of love
 
Join Date: Feb 2015
Location: hell
Posts: 25
Gender: Unknown/Other
Credits: 3,893
zoe is on a distinguished road
Default

I've fixed it, thank you! I had 0 rows in my adopts_settings file. Now I have 21 rows.

But whenever I try to log in or click any link in the index page, I get another error. If I were to click on 'login', Ill get redirected to http://127.0.0.1/login, and Ill get a 404 Not Found error.

It reads: "The requested URL /login was not found on this server."
Reply With Quote
  #10  
Old 02-07-2015, 09:59 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 87,447
Kyttias is on a distinguished road
Default

Is mod_rewrite enabled in Apache? [ Possible help. ]
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 02-07-2015 at 10:01 PM.
Reply With Quote
Reply

Tags
mamp, why is this so hard

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
Install Issues Ghostwriteres Questions and Supports 6 05-26-2013 08:15 PM
theme issues chinchillapals Questions and Supports 4 04-20-2012 04:09 PM
Oh look more issues Abronsyth Questions and Supports 2 10-20-2011 06:35 AM
2 Issues Breakdown Questions and Supports 8 03-01-2009 02:48 PM
Having Setup Issues fritchie Questions and Supports 2 02-07-2009 01:28 PM


All times are GMT -5. The time now is 12:39 AM.

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