White screen when enabling pageroute and pageroute UI
capellic - September 3, 2009 - 19:45
| Project: | Pageroute |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | sgilits |
| Status: | closed |
| Issue tags: | pageroute-beta2 |
Jump to:
Description
I get the following error in my error log when enabling pageroute and pageroute UI.
[03-Sep-2009 14:43:26] PHP Fatal error: Class 'PageroutePage' not found in /sites/all/modules/pageroute/pageroute.page_view.inc on line 15

#1
I took it from the top and was able to activate the pageroute module without incident. Then I tried the pageroute_ui module and *that's* when I receive the error.
I saw that the class in question, PageroutePage is in pageroute.route.inc. I added the following include to the top of pageroute.page_vew.inc, just under the one include that is already there.
include_once(drupal_get_path('module', 'pageroute') .'/pageroute.route.inc');
#2
But then when enabling the profile_setup module, I get another white screen. This time the error is as follows:
Class 'pageroute_page' not found in /mnt/stor2-wc1-dfw1/394655/394666/www.cbtf.org/web/content/sites/all/modules/profile_setup/profile_setup.page_profile_picture.inc on line 11
The class 'pageroute_page' doesn't exist anywhere in the dev code. There is an include right before the code is trying to extend pageroute_page:
include_once(drupal_get_path('module', 'pageroute') .'/pageroute.page.inc');
That file does not exist in the new dev version of pageroute. When I look at the code from the beta1 version, I see the class that that profile_update is looking for. Looks like this class has been refactored and moved to pageroute.route.inc.
Let's experiment.
I change the include from 'pageroute.page.inc' to 'pageroute.route.inc' and then in the next line of code change this:
class profile_setup_page_profile_picture extends pageroute_page {
to this
class profile_setup_page_profile_picture extends PageroutePage {
I tried to refresh -- I new I would have errors at this point. Here's the error I got:
Class profile_setup_page_profile_picture contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (PageroutePage::getForm, PageroutePage::setUp)
This is because the two functions, get_form and set_form, were changed to getForm and setUp, respectively.
Declaration of profile_setup_page_profile_picture::setUp() must be compatible with that of PageroutePage::setUp()
OK, that's interesting -- I'm not a objects guy, but I'll presume I need to add some parameters to the setUp function over in pageroute.route.inc.
I went back and changed the setUp function in profile_setup.page_profile_picture.inc to getForm
And got this error; [03-Sep-2009 16:32:40] PHP Fatal error: Class profile_setup_page_profile_picture contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (PageroutePage::setUp) in /mnt/stor2-wc1-dfw1/394655/394666/www.cbtf.org/web/content/sites/all/modules/profile_setup/profile_setup.page_profile_picture.inc on line 79
..... forget it... I give up. I don't understand objects and who knows what else needs fixing. I'm going to climb out of the rabbit hole for now and I'd like some feedback from the maintainers.
#3
#4
>declared abstract or implement the remaining methods
Make sure you don't have methods defined abstract in your page class and also don't forget to define any methods that are marked as abstract.
#5
The other issues are fixed in the latest dev version...
#6
I am getting this...
Fatal error: Class 'pageroute_page' not found in /home/magician/public_html/sites/all/modules/profile_setup/profile_setup.page_profile_picture.inc on line 11
Have tried various configurations.. I am stuck...
#7
I cant setup pageroute with profile_setup... keep getting this error:
Fatal error: Class 'pageroute_page' not found in /home/magician/public_html/sites/all/modules/profile_setup/profile_setup.page_profile_picture.inc on line 11
#8
There is no pageroute_page class anymore, all class names are now CamelCase. So if you want to use the Profile Setup module you'll have to port it to the latest version.
#9
Automatically closed -- issue fixed for 2 weeks with no activity.
#10
Hi,
I'm getting this error with the beta 3 version of pageroute - when I enable the module & pagerouteUI- and then go to Administer > By Module I get the white screen of death and the following error ...
PHP Fatal error: Class 'PageroutePage' not found in /Applications/MAMP/htdocs/drupal2/sites/all/modules/pageroute/pageroute.page_view.inc on line 14If I disable the PagerouteUI module - everything works AOK - but then I can't do anything with pageroute.
I also thought that it might be the Profile Setup module from other posts (that has been disabled & deleted to make sure) - but I'm still getting the error.
Any help would be great!
L
#11
If you add
include_once(drupal_get_path('module', 'pageroute') .'/pageroute.route.inc');to the top of pageroute.page_vew.inc before
/*** PageroutePageView display a simple node.
*/
class PageroutePageView extends PageroutePage {
The fatal error is solved - you will however get a lot of errormessages saying:
warning: call_user_func(pageroute_page_view::help) [function.call-user-func]: First argument is expected to be a valid callback in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\choosev\sites\all\modules\pageroute\pageroute_ui.module on line 326.Haven't found out why yet - or if it is safe to ignore :-/
#12
ok fixed th problem, and released a new beta.
thx for the help :-)
#13
Automatically closed -- issue fixed for 2 weeks with no activity.