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 10-04-2014, 12:44 PM
FounderSim FounderSim is offline
Member
 
Join Date: Sep 2014
Posts: 65
Gender: Male
Credits: 7,585
FounderSim is on a distinguished road
Default No errors, just a blank page?

So my tester/explore page works then but when I add the method investigate, I can't even access the tester/explore page. Its just blank. I have checked and rechecked both the controller and view for sytanx errors and can't seem to find any. I noticed sometimes if I will not be alerted of any error if I dont pass two variables to certain functions in mysidia so I checked all them as well because that usually results in a blank page as well.

The Controller:
Code:
	public function investigate(){
		$mysidia = Registry::get("mysidia"); 
		
		$explore_var = $mysidia->session->fetch("explorer");
		
		if($explore_var == 0)
		{
			$this->setField("explorer", new String("Stupid Hacker..."));
		}
		else
		{
			$mysidia->session->assign("explorer_step", 2);
			$stmt = $mysidia->db->select("explorer", array("eType"), "eid={$explore_var}");	
			$result = $stmt->fetchObject();

			if($result->eType == "item")
			{
				$this->setField("explorer", new String($result->eType));
			}
			elseif($result->eType == "coin")
			{
				$this->setField("explorer", new String($result->eType)));
			}
			elseif($result->eType == "pet")
			{
				$this->setField("explorer", new String($result->eType));
			}
			else
			{
				$this->setField("explorer", new String("boo"));
			}
		}
	}

The View
Code:
	public function investigate(){
		$mysidia = Registry::get("mysidia");
		$document = $this->document;  
		
		
        $document->setTitle("TEST");
		
		
		$emessages = $this->getField("explorer");
		
		
		switch($emessages)
		{
//manual edit of comments during paist of this code =)
			case "item":
				$document->add(new Comment('Ooh/a>'));
				break;
			case "pet":
				$document->add(new Comment('oh/a>'));
				break;
			case "coin":
				$document->add(new Comment('Ooh">Continue</a>'));
				break;
			default:
				$document->add(new Comment($emessages));			
		}
	}
Reply With Quote
  #2  
Old 10-04-2014, 01:46 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,375
IntoRain is on a distinguished road
Default

Some errors are logged in the error_log file, the newer ones should be at the bottom, are there any related to those files?
__________________


asp.net stole my soul.
Reply With Quote
  #3  
Old 10-04-2014, 01:53 PM
FounderSim FounderSim is offline
Member
 
Join Date: Sep 2014
Posts: 65
Gender: Male
Credits: 7,585
FounderSim is on a distinguished road
Default

It would be nice if I had a error_log file =)
Reply With Quote
  #4  
Old 10-04-2014, 02:13 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,375
IntoRain is on a distinguished road
Default

You have an extra ) there:

elseif($result->eType == "coin")
{
$this->setField("explorer", new String($result->eType)));//here
}
__________________


asp.net stole my soul.
Reply With Quote
  #5  
Old 10-04-2014, 02:55 PM
FounderSim FounderSim is offline
Member
 
Join Date: Sep 2014
Posts: 65
Gender: Male
Credits: 7,585
FounderSim is on a distinguished road
Default

woops. I guess thats why an extra set of eyes ALWAYS helps especially when you dont have error reporting or error logs.
Reply With Quote
  #6  
Old 10-04-2014, 04:15 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,375
IntoRain is on a distinguished road
Default

Quote:
Originally Posted by FounderSim View Post
woops. I guess thats why an extra set of eyes ALWAYS helps especially when you dont have error reporting or error logs.
It's always these little typos that are easy to miss xD
__________________


asp.net stole my soul.
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
Blank page with x10Hosting bisexuowl Questions and Supports 0 09-22-2015 09:42 PM
Blank profile page? gloryKAT Questions and Supports 3 02-08-2015 04:53 PM
Blank Inventory Page ilrak Questions and Supports 5 09-23-2014 09:03 PM
Blank Page Samuel hunter Questions and Supports 8 01-01-2013 04:08 PM
Blank page LilPixie Questions and Supports 2 02-20-2009 09:59 PM


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

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