Skip to main content
Topic: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0 (Read 2430 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0

Any ideas please.

TRIED coming from 1.0.9 to 1.1b2
got some mysql error , line 972, about DB name. when i tried to login
never could get around it
so I deleted the entire thing
re-upped db backup
done a fill 1.1b2 install

old forum is there
i can login
i can access admin
naturally some the features/settings is off. Logo is gone
after looking around a bit I start go run through the settings...

Admin/Configuration/Layout
gets this error
Fatal error: Cannot redeclare class MarkRead_Controller in /home/(hosted_name)/public_html/sources/controllers


SOMETHING to note....
during install, was no settings.php file
install adopted the .bak version

Can anyone offer any ideas and help, please?
Last Edit: September 17, 2016, 02:05:54 am by derived

Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0

Reply #1

Quote from: derived – TRIED coming from 1.0.9 to 1.1b2
got some mysql error , line 972, about DB name. when i tried to login
never could get around it
so I deleted the entire thing
That's bad, some details on the errors could have helped identify the issue... :(

Quote from: derived – Admin/Configuration/Layout
gets this error
Fatal error: Cannot redeclare class MarkRead_Controller in /home/(hosted_name)/public_html/sources/controllers
This is usually due to overwriting a 1.0 install with the 1.1 files, this leaves the Markasread.controller.php (present in v1.0) that contains the class MarkRead_Controller, the same name as the file MarkRead.controller.php (present in v1.1).
So the solution is: delete Markasread.controller.php.
I'm not sure we can easily deal with duplicate class names... we could use namespaces, but seems a bit too much for the moment to use namespaces on controllers. Or maybe not?
Bugs creator.
Features destroyer.
Template killer.

Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0

Reply #2

I fixed the error on 1460 in a pending PR, ignore it for now.

Seems like you still have the old file in your install ...
Code: [Select]
/home/account/public_html/sources/controllers/Markasread.controller.php on lin e 0
so delete that file since its not part of 1.1

Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0

Reply #3

My mistake: the file slipped into the package... :-[
Just delete /sources/controller/Markasread.controller.php
I wonder how the heck it could happen since the build is completely automated... :-\
Bugs creator.
Features destroyer.
Template killer.

Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0

Reply #4

Quote from: derived – [17-Sep-2016 05:50:07 Etc/GMT0] PHP Notice:  Undefined index: user_access_mentions in /home/account/public_html/sources/subs/ScheduledTask/UserAccessMentions.php on line 37
My forum also logged the abovementioned error. Where can I look for the fix(es)? Is it related to 1460 of ManageThemes.controller.php?

Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0

Reply #5

That could be because... well, user_access_mentions is not set. :P
Code: [Select]
$user_access_mentions = \Util::unserialize($modSettings['user_access_mentions']);
into:
Code: [Select]
		if (!empty($modSettings['user_access_mentions']))
{
$user_access_mentions = \Util::unserialize($modSettings['user_access_mentions']);
}
else
{
$user_access_mentions = array();
}
Bugs creator.
Features destroyer.
Template killer.