Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #21  
Old 09-18-2014, 08:50 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,311
Hall of Famer is on a distinguished road
Default

I am glad the mod is working for everyone, minus the headache of installation. I did beta-test the mod extensively before releasing it, so guess it helps somehow. I aint quite sure why auto-installer aint working for some of you, I will see if theres anything I can do.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #22  
Old 09-19-2014, 08:24 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,036
kristhasirah
Default

dont worry HOF, for me it was good that the installer dint work ^^ now i know how to insert and create tables XD. and like you said in your first post ._O it was a pain to add them, specially for someone like me that knows too little about coding and creating/inserting/adding tables to a database >_> But for the same reason i decided to add the codes that worked for me to install manually the tables to the database, maybe it will help those who are like me =)

By the way for me the installer only showed a blank page and nothing else... maybe because i used the solution to remove the warnings that appeared in the admin cp...
__________________
Reply With Quote
  #23  
Old 09-25-2014, 03:53 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,084
parayna is on a distinguished road
Default

I am also having trouble installing this mod ^_^''

This is the warning:

Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/ycadopts/public_html/classes/class_initializer.php on line 97

Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/ycadopts/public_html/classes/class_initializer.php on line 97

Fatal error: require(): Failed opening required '../inc/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ycadopts/public_html/classes/class_initializer.php on line 97

I tried the installation thing with the tables that kristhasirah said but it didn't work.. not sure what to do XD Help? ^_^
Reply With Quote
  #24  
Old 09-25-2014, 04:30 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,311
Hall of Famer is on a distinguished road
Default

Are you using Mys v1.3.4? If so, take a screenshot of the folder structure as it appears on your FTP client and I will see what the error may be.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #25  
Old 09-26-2014, 01:28 AM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,084
parayna is on a distinguished road
Default

Yes I do use the latest version, but what do you mean by 'folder structure'? Do you mean just snapshot an image of the folders? Because I can do that but I'm confused by what you mean XD
Reply With Quote
  #26  
Old 09-26-2014, 09:56 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,036
kristhasirah
Default

i tested the codes again and they are working, i even created a new database just for that, but if you still have troubles using the codes i posted for installing the tables manually, try installing them 1 by 1 , because if you try to install them all at the same time you must add a: ; at the end of each code
example: CREATE TABLE `adopts_alchemy` (alid INT NOT NULL AUTO_INCREMENT PRIMARY KEY, item INT DEFAULT 0, item2 INT DEFAULT 0, newitem INT DEFAULT 0, chance INT DEFAULT 0, recipe INT DEFAULT 0);
also remember to change the "your_database" with the name of your database
and if your tables have a different "prefix" and not "adopts_" you must change that too
__________________
Reply With Quote
  #27  
Old 09-26-2014, 11:40 AM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,084
parayna is on a distinguished road
Default

Oh, OK. I shall try that then! (I did them all at the same time ^_^'') I have just made a copy of my site for testing so now I won't ruin the actual one. So let's see if this works.. XD

EDIT: No... it still won't work.. I keep getting this:

Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/calamit2/public_html/classes/class_initializer.php on line 97

Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/calamit2/public_html/classes/class_initializer.php on line 97

Fatal error: require(): Failed opening required '../inc/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/calamit2/public_html/classes/class_initializer.php on line 97

I don't know if it'll help or not, but here is the class_initializer file:

PHP Code:
<?php

use \Resource\Native\Object;
use \
Resource\Native\String;

/**
 * The Initializer Class, it is responsible for the basic bootstraping of the system.
 * It handles basic Loader, Registry, System Object creation, further operations are delegated to Mysidia System Class.
 * This is a final class, cannot be extended by any child classes.
 * @category Resource
 * @package Utility
 * @author Hall of Famer 
 * @copyright Mysidia Adoptables Script
 * @link http://www.mysidiaadoptables.com
 * @since 1.3.3
 * @todo Not much at this point.
 * @final
 *
 */

final class Initializer extends Object{

    
/**
     * The dir property, defines relative directory for Bootstraping process.
     * @access private
     * @var String
    */
    
private $dir

    
/**
     * The uri property, stores a reference of the URI from server variables.
     * @access private
     * @var String
    */
    
private $uri;   

    
/**
     * Constructor of Initializer Class, it delegates to the method initialize() to complete the request.
     * @access public
     * @return Void
     */
    
public function __construct(){
        
$this->setURI();
        
$this->setDir();
        
$this->initialize();
    }

    
/**
     * The getUri method, getter method for property $uri
     * @access public
     * @return Void
     */
    
public function getUri(){
        return 
$this->uri;
    } 

    
/**
     * The setUri method, setter method for property $uri
     * The property is set upon Initializer object instantiation, cannot be called from external class.
     * @access private
     * @return Void
     */
    
private function setUri(){
        
$this->uri $_SERVER['REQUEST_URI'];
    }   

    
/**
     * The getDir method, getter method for property $dir
     * @access public
     * @return Void
     */
    
public function getDir(){
        return 
$this->dir;
    } 

    
/**
     * The setDir method, setter method for property $dir
     * The property is set upon Initializer object instantiation, cannot be called from external class.
     * @access private
     * @return Void
     */
    
private function setDir(){
        if(
strpos($this->uri"admincp") !== FALSE or strpos($this->uri"install") !== FALSE){
            
$this->dir "../";
        }
        else 
$this->dir "";
    }   

    
/**
     * The initialize method, carries out the basic bootstraping steps.
     * It opens config file first, then include basic files and instantiate important objects.
     * @access private
     * @return Void
     */
    
private function initialize(){
        
$config "{$this->dir}inc/config.php";
        require 
$config;

        include(
"{$this->dir}functions/functions.php");
        include(
"{$this->dir}functions/functions_users.php");

        
$loader "{$this->dir}classes/class_loader.php";
        require 
$loader;
        
$loader = new Loader($this->dir);

        
$registry Registry::getInstance();
        
Registry::set(new String("loader"), $loaderTRUETRUE);
        
        
$mysidia = new Mysidia;        
        
$router = new Router($this->uri);
        
$router->route();
        
$dispatcher = new Dispatcher($router);
        
$dispatcher->dispatch();

        
$wol = new Online;
        
$wol->update();
        
Registry::set(new String("wol"), $wol);
    }
}
?>
Is there maybe something wrong with it? (That's what the warning seems to say... but I dunno XD)

I know I keep asking for help, but this is the only way I'll learn how to solve issues if I run into them in the future XD (Plus it's a great way of learning basic coding skills hehehe)

Last edited by parayna; 09-26-2014 at 12:02 PM.
Reply With Quote
  #28  
Old 09-26-2014, 12:29 PM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,036
kristhasirah
Default

Are you trying to install the mod by using the installer? because your problem is like the one Abronsyth had/has when tried to run the installer.php :http://www.mysidiaadoptables.com/for...9&postcount=11
The codes i posted are the ones that the installer is supposed to install, so you dont need to run the installer script, just make the edits and upload the required files to make the mod work.

edit:
I did a completely manual Install, because when i tried to run the installer i got a blank page and right now is working without problems or errors.
__________________

Last edited by kristhasirah; 09-26-2014 at 12:32 PM.
Reply With Quote
  #29  
Old 09-26-2014, 12:39 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,084
parayna is on a distinguished road
Default

Oooh! So i just ignore the install folder and manually install everything else? I can try that! Thanks!
Reply With Quote
  #30  
Old 09-26-2014, 12:49 PM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,036
kristhasirah
Default

Yes, if you used the codes i posted then you already have installed the tables you need for the mod and now just need to edit the pages and add the files, and the mod will be working without problems =)
__________________
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
Alchemy Mod - HoF Nieth Questions and Supports 4 11-13-2015 11:52 AM


All times are GMT -5. The time now is 04:33 AM.

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