Skip to main content
Topic: HTTP ERROR 500 when clicking "Layout" in Admin area (1.1) (Read 4875 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: HTTP ERROR 500 when clicking "Layout" in Admin area (1.1)

Reply #15

Good.
Now, let's assume the iterator is fine and it crashes at some point during the scanning.
Try changing:
Code: [Select]
	foreach ($iterator as $file)
{
$class_name = $namespace . preg_replace('~([^^])((?<=)[A-Z](?=[a-z]))~', '$1_$2', $file->getBasename('.controller.php')) . '_Controller';
to:
Code: [Select]
	foreach ($iterator as $file)
{
echo $glob->getFilename() . '<br>';
Errors::instance()->log_error($file->getFilename());
$class_name = $namespace . preg_replace('~([^^])((?<=)[A-Z](?=[a-z]))~', '$1_$2', $file->getBasename('.controller.php')) . '_Controller';

it we are lucky the last showed/logged is the problematic file.
If you don't see anything accessing the page, try looking in the error log.
Bugs creator.
Features destroyer.
Template killer.

Re: HTTP ERROR 500 when clicking "Layout" in Admin area (1.1)

Reply #16

Notice: Undefined variable: glob
@ index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny

File:
/sources/subs/ManageFeatures.subs.php
Line: 845



Here you go!
Facta, non verba.

Re: HTTP ERROR 500 when clicking "Layout" in Admin area (1.1)

Reply #17

Sorry, my typo:
Code: [Select]
echo $glob->
should be:
Code: [Select]
$file->
Bugs creator.
Features destroyer.
Template killer.

Re: HTTP ERROR 500 when clicking "Layout" in Admin area (1.1)

Reply #18

Well.. well.. well..

A whole boatload of errors:



Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Markasread.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
MarkRead.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Likes.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Karma.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Jslocale.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Help.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Groups.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Emailuser.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Emailpost.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Draft.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Display.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Calendar.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
BoardIndex.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Auth.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Attachment.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny      
 
Today at 02:42:15 PM
 
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Announce.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Facta, non verba.

Re: HTTP ERROR 500 when clicking "Layout" in Admin area (1.1)

Reply #19

Code: [Select]
da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
Type of error: General
Markasread.controller.php
 index.php?action=admin;area=featuresettings;sa=layout;PGafAYj35W=da9ffq3mkmmGqEg5JrbzNz2lHhGTBRny
This is is.

Markasread.controller.php has been "recently" renamed to Markread.controller.php, so the file left in place is crashing the system.
I'd consider indeed that a bug.
The "quick fix" is to simply delete the file.
Bugs creator.
Features destroyer.
Template killer.

Re: HTTP ERROR 500 when clicking "Layout" in Admin area (1.1)

Reply #20

Oooh.. I see.. So all I need to do is to delete "Markasread.controller.php" under Sources/Controller, right?

Alright, done and it works as expected! :D Nice!
Facta, non verba.