ElkArte Community

Project Support => Support => Topic started by: derived on September 16, 2016, 04:18:21 pm

Title: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0
Post by: derived on September 16, 2016, 04:18:21 pm
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?
Title: Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0
Post by: emanuele on September 16, 2016, 04:58:32 pm
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?
Title: Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0
Post by: Spuds on September 17, 2016, 06:46:08 am
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
Title: Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0
Post by: emanuele on September 17, 2016, 06:49:44 am
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... :-\
Title: Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0
Post by: ahrasis on November 26, 2016, 11:57:37 pm
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?
Title: Re: 1.1B2 Fatal error:.../controllers/Markasread.controller.php on line 0
Post by: emanuele on November 27, 2016, 07:37:29 am
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();
}