Log in

View Full Version : Trouble with new files


KatFennec
05-07-2017, 01:12 AM
getting the error
Fatal error: Class 'AppController' not found in /home/katfenne/clikrit.evocrit.com/electricglacier2.php on line 2

on a custom page. code for the page:
<?php
class Electricglacier2Controller extends AppController{

public function __construct(){
parent::__construct("member");
}

public function index(){
$mysidia = Registry::get("mysidia");
}

}
?>

Previously created page, using an identical copy of that code, save for the controller name, worked flawlessly.

KatFennec
05-07-2017, 01:55 AM
Alternately, Depending on how you navigate to it, it simply loads the index.

Abronsyth
05-07-2017, 06:04 AM
What does your view file for it look like?

aquapyrofan
05-07-2017, 11:24 AM
What does your view file for it look like?
It's identical to one that works in all but titles, (copy/pasted except the name, which is edited to match the non-view file) but there's only one character of difference so it would be pretty clear if there was a typo.

KatFennec
05-07-2017, 02:09 PM
We recently changed domains as part of a migration to x10's premium hosting, so that may be contributing.
file is too long, so I'm going to attach it.

Abronsyth
05-08-2017, 09:40 AM
View File: ElectricGlacier2
File: Electricglacier2

Your problem is probably to do with the case of the "g" in glacier. PHP is picky about things like that. Try changing it so they match one another?

aquapyrofan
05-08-2017, 02:15 PM
View File: ElectricGlacier2
File: Electricglacier2

Your problem is probably to do with the case of the "g" in glacier. PHP is picky about things like that. Try changing it so they match one another?

It works fine in the version without the 2 though. That's the puzzling thing.

Abronsyth
05-08-2017, 02:24 PM
I'd still try it and see if it works.

aquapyrofan
05-08-2017, 04:23 PM
I'd still try it and see if it works.

We did, and it didn't. The same files also did work properly (i.e. Not requiring the .php extension to load) on a new install of Mysidia done on a sub domain, so we opted to reinstall and use a backup.