Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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)); } } |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
It would be nice if I had a error_log file =)
|
#4
|
||||
|
||||
You have an extra ) there:
elseif($result->eType == "coin") { $this->setField("explorer", new String($result->eType)));//here }
__________________
asp.net stole my soul. |
#5
|
|||
|
|||
woops. I guess thats why an extra set of eyes ALWAYS helps especially when you dont have error reporting or error logs.
|
#6
|
||||
|
||||
It's always these little typos that are easy to miss xD
__________________
asp.net stole my soul. |
|
|
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 |
What's New? |
What's Hot? |
What's Popular? |