Ilrak's weird issues (Level creating and Adoptable Editing)

Forum
Last Post
Threads / Messages

ilrak

Goldfish Fanatic
Member
Joined
Aug 27, 2014
Messages
57
Points
6
Location
Utah
Mysidian Dollar
9,032
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):

ScreenShot2014-09-24at45250PM.png


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

ScreenShot2014-09-24at45812PM.png


Which quickly turns into this:

ScreenShot2014-09-24at45816PM.png


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:

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:
<?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!
 
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.
 
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!
 
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.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Latest Posts

Top