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 09-24-2014, 06:05 PM
ilrak ilrak is offline
Goldfish Fanatic
 
Join Date: Aug 2014
Location: Utah
Posts: 57
Gender: Female
Credits: 11,626
ilrak is on a distinguished road
Default Ilrak's weird issues (Level creating and Adoptable Editing)

So, the first issue I'm running into is when I go to add a level to an adopt. It's not a super consistent error, but I've run into it enough that I need help on it. When I go to create a new level, I'm sometimes greeted with this page (this time, it was on the 5th adoptable that I created):



So, I fill out all the information (and I don't leave anything blank) and submit, receiving this page:



Which quickly turns into this:



I've deleted the adoptable and restarted a couple of times when this has happened, and sometimes it fixes it, sometimes not (right now, it's not), so I'm not sure what to do.

I'm also still having issues with editing adoptables in the ACP. When I go to the edit adoptable page, I get this error:

Quote:
Fatal error: Call to undefined method ACPAdoptView::edit() in /home/auratusg/public_html/classes/class_frontcontroller.php on line 100
Here's what the code is for that file:

PHP Code:
<?php

/**
 * The Abstract FrontController Class, extends from abstract controller class.
 * It is parent to all frontcontroller type classes, there's one front controller for main site, ACP and installation wizard.
 * @category Controller
 * @package Controller
 * @author Hall of Famer 
 * @copyright Mysidia Adoptables Script
 * @link http://www.mysidiaadoptables.com
 * @since 1.3.2 
 * @todo Not much at this point.
 * @abstract
 *
 */
 
abstract class FrontController extends Controller{
 
    
/**
     * The appController property, holds a reference to the app-controller available for this front-controller.
     * @access protected
     * @var appController
    */
    
protected $appController

    
/**
     * The metaController property, stores a reference to the root meta-controller object.
     * @access protected
     * @var metaController
    */
    
protected $metaController;      

    
/**
     * Constructor of FrontController Class, which initializes basic controller properties.
     * @access public
     * @return Void
     */
    
public function __construct($access ""){
        
$mysidia Registry::get("mysidia");
        
$this->name $mysidia->input->get("frontcontroller");    
    }    
    
    
/**
     * The getappController method, getter method for property $appController.
     * @access public
     * @return AppController
     */    
    
public function getAppController(){
        return 
$this->appController;
    }        
    
    
/**
     * The getRequest method, it acquires user request and applies basic operations.
     * @access public
     * @return Boolean
     */
    
public function getRequest(){
        
$mysidia Registry::get("mysidia");
        
$dir = ($this->name == "index")?"":"{$this->name}/";
        
$file "{$mysidia->path->getRoot()}{$dir}{$mysidia->input->get("appcontroller")}.php";        
        return 
$this->hasAppController($file); 
    }

    
/**
     * The getView method, getter method for property $view.
     * @access public
     * @return View
     */    
    
public function getView(){
        if(!
$this->view){ 
            if(
$this->appController instanceof AppController$this->view $this->appController->getView();
            else 
$this->loadView($this->name);
        }    
        return 
$this->view;
    }    

    
/**
     * The hasAppController method, checks if the app-controller exists in the given directory.
     * @param String  $file
     * @access private
     * @return Boolean
     */        
    
private function hasAppController($file){
        
$mysidia Registry::get("mysidia");
        if(
$mysidia->input->get("appcontroller") == "index"$appControllerExist FALSE;
        elseif(
file_exists($file)) $appControllerExist TRUE;
        else 
$appControllerExist FALSE;
        return 
$appControllerExist;        
    }

    
/**
     * The render method, it loads the corresponding view 
     * @access public
     * @return Void
     */        
    
public function render(){
        if(
$this->flags$this->view->triggerError($this->flags);
        else{ 
            
$action = ($this->action)?(string)$this->action:"index";
            
$this->view->$action();
        }
        
$this->view->render();
    }
    
    
/**
     * The appFrontController method, setter method for property $appController.
     * @param AppController  $appController
     * @access public
     * @return FrontController
     */    
    
public function setAppController(AppController $appController){
        
$this->appController $appController;
    }        

    
/**
     * The abstract handleRequest method, must be implemented by child classes.
     * @access public
     * @return Void
     * @abstract
     */    
    
public abstract function handleRequest(); 
}
?>
I'm not sure what's going on there. I've reinstalled that file and I still get the error. I do have the Alchemy and Item Drop mods installed, and I copy and pasted everything from the manual install for those (I also had the merged breeding mod but I uninstalled it, thinking that it was what was causing the problem with levels, to no avail). Just not sure what to do at this point. :/ I'd hate to have to reinstall and start over.

Thanks!
Reply With Quote
  #2  
Old 09-24-2014, 10:17 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: 333,583
Hall of Famer is on a distinguished road
Default

For creating new levels, how about filling only hosted images or existing images? I think if you fill in both of them, you will get an error.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 09-24-2014, 10:50 PM
ilrak ilrak is offline
Goldfish Fanatic
 
Join Date: Aug 2014
Location: Utah
Posts: 57
Gender: Female
Credits: 11,626
ilrak is on a distinguished road
Default

I've only been filling in one of them. I'm trying something with shortening all the adopt names and seeing if maybe I just was making the names too long or something. Thanks!
Reply With Quote
  #4  
Old 09-25-2014, 07:26 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,407
kristhasirah
Default

the problem of -1 level is mostly caused by the host, i some times have that error too... when i create an adopt, the host don't send all the info to the database and fails to create the level 0, this is "quickly" fixed by going to phpmyadmin, and adding manually the missing information in prefix_levels.
And maybe the problem of the missing id is caused because the adopt don't have the same id in the prefix_adoptables and prefix_adoptables_conditions... if is that then just edit the id of the adopt manually and try to reset the id increment so you no longer have that problem.

sorry if i cant be of more help, but thats how i mostly "fix" the adopt when i have that problem, which can also occur when uploading images...

Code:
ALTER TABLE prefix_nametable AUTO_INCREMENT=0
<-- thats the myslq code i use to "reset" the Auto Increment of the tables.
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ilrak's Linearts! ilrak Art Gallery 0 11-16-2014 07:07 PM
Editing Adoptable in ACP Error ilrak Questions and Supports 0 09-22-2014 11:09 PM
How do I delete an adoptable level? gloryKAT Questions and Supports 3 09-02-2013 12:57 AM
Weird RipJawWolfFang Questions and Supports 3 06-26-2009 02:07 PM
Adoptable Level Image + Another Question gjac1 Suggestions and Feature Requests 14 02-25-2009 03:40 AM


All times are GMT -5. The time now is 07:20 AM.

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