orsova
July 30, 2023, 9:17am
1
Hi all,
I’m running a new installation of OJS 3.04-1 on Ubuntu 22.04 with PHP 8.1 and Apache2.
I have a strange problem with the Immersion theme. Everything seems to work, except for the ‘Issue Data’ tab, where Immersion injects its custom section colour options.
When I access that tab, I see nothing - just an empty tab.
There are two error events that are of note.
The first occurs when the website is first loaded. This seems to be an Apache2 error rather than a problem with OJS, per se.
[Sun Jul 30 08:36:39.686889 2023] [php:notice] [pid 1305] [client ] Server host “209.250.229.15” not allowed!
[Sun Jul 30 08:36:39.686935 2023] [php:notice] [pid 1305] [client 184.105.139.67:19246] ojs2: 400 Bad Request
[Sun Jul 30 08:41:56.935671 2023] [php:notice] [pid 982] [client 143.110.222.166:43370] Server host “209.250.229.15” not allowed!
[Sun Jul 30 08:41:56.935736 2023] [php:notice] [pid 982] [client 143.110.222.166:43370] ojs2: 400 Bad Request
And the second occurs when the ‘Issue Data’ tab is accessed.
[Sun Jul 30 08:58:45.433240 2023] [php:error] [pid 2326] [client ] PHP Fatal error: Uncaught Exception: Unrecognized DAO SectionDAO! in /var/www/html/ojs/lib/pkp/classes/db/DAORegistry.php:77\nStack trace:\n#0 /var/www/html/ojs/plugins/themes/immersion/ImmersionThemePlugin.inc.php(442): PKP\db\DAORegistry::getDAO()\n#1 [internal function]: ImmersionThemePlugin->addToIssueForm()\n#2 /var/www/html/ojs/lib/pkp/classes/plugins/Hook.php(140): call_user_func_array()\n#3 /var/www/html/ojs/lib/pkp/classes/plugins/Hook.php(113): PKP\plugins\Hook::run()\n#4 /var/www/html/ojs/lib/pkp/classes/form/Form.php(182): PKP\plugins\Hook::call()\n#5 /var/www/html/ojs/controllers/grid/issues/form/IssueForm.php(112): PKP\form\Form->fetch()\n#6 /var/www/html/ojs/classes/controllers/grid/issues/IssueGridHandler.php(211): APP\controllers\grid\issues\form\IssueForm->fetch()\n#7 [internal function]: APP\controllers\grid\issues\IssueGridHandler->editIssueData()\n#8 /var/www/html/ojs/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()\n#9 /var/www/html/ojs/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()\n#10 /var/www/html/ojs/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route()\n#11 /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.php(373): PKP\core\Dispatcher->dispatch()\n#12 /var/www/html/ojs/index.php(21): PKP\core\PKPApplication->execute()\n#13 {main}\n thrown in /var/www/html/ojs/lib/pkp/classes/db/DAORegistry.php on line 77, referer: https:///index.php/testjournal/manageIssues
If anybody has any idea how to fix this, I’d be extremely grateful. Not only so that I can access the custom colours, but also because we effectively cannot use this theme unless we can get access to the ‘Issue Data’ tab.
orsova
July 30, 2023, 10:25am
3
I should add, both errors are from the Apache log.
orsova
July 30, 2023, 1:43pm
4
This:
opened 02:14AM - 23 Jun 23 UTC
closed 07:08AM - 27 Jun 23 UTC
bug
**Describe the bug**
After upgrading an installation from OJS 3.3 to OJS 3.4 th… e journal stops to work on the frontend when Immersion Theme is enabled. It returns an error code 500
**To Reproduce**
Steps to reproduce the behavior:
1. Upgrade OJS 3.3 to 3.4
2. Go to dashboard
3. Enable and select Immersion theme (using tag 1.1.2)
4. Check the home page
5. See the error
**Expected behavior**
Loading the public interface.
**Desktop (please complete the following information):**
- OS: MacOS
- Browser chrome
- Version 115
**Additional context**
Apache log error message:
```
Fatal error: Uncaught Exception: Unrecognized DAO SectionDAO! in /var/www/html/lib/pkp/classes/db/DAORegistry.php:77
Stack trace:
#0 /var/www/html/plugins/themes/immersion/z(186): PKP\db\DAORegistry::getDAO('SectionDAO')
#1 [internal function]: ImmersionThemePlugin->addIssueTemplateData('TemplateManager...', Array)
#2 /var/www/html/lib/pkp/classes/plugins/Hook.php(140): call_user_func_array(Array, Array)
#3 /var/www/html/lib/pkp/classes/plugins/Hook.php(113): PKP\plugins\Hook::run('TemplateManager...', Array)
#4 /var/www/html/lib/pkp/classes/template/PKPTemplateManager.php(1300): PKP\plugins\Hook::call('TemplateManager...', Array)
#5 /var/www/html/pages/index/IndexHandler.php(80): PKP\template\PKPTemplateManager->display('frontend/pages/...')
#6 [internal function]: APP\pages\index\IndexHandler->index(Array, Object(APP\core\Request))
#7 /var/www/html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#8 /var/www/html/lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
#9 /var/www/html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
#10 /var/www/html/lib/pkp/classes/core/PKPApplication.php(373): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#11 /var/www/html/index.php(21): PKP\core\PKPApplication->execute()
#12 {main} thrown in /var/www/html/lib/pkp/classes/db/DAORegistry.php on line 77
```
Appears to be the same issue in a different form. I’m still not quite sure how to effect a fix yet, though.
orsova
July 30, 2023, 2:55pm
5
Do I merely need to make the changes outlined here?
pkp:main
← touhidurabir:i85_main
opened 08:38AM - 23 Jun 23 UTC
orsova
July 30, 2023, 11:16pm
7
I’ve figured out my mistake.
I downloaded 1.1.2 dated March 2 from the github releases section, rather than the most recent version from the ‘code’ option on the main page.
Hi @orsova ,
Glad you’ve resolved the issue!
Cross-posted: New Install: Uncaught Exception: Unrecognized DAO SectionDAO! · Issue #87 · pkp/immersion · GitHub
Next time, please don’t cross-post in multiple places; the support forum (here) is the best place to get started. It’ll probably take a few days (especially if it’s over a weekend) before someone on the team can look at it; we’re a small team with a lot of competing responsibilities.
Thanks,
Alec Smecher
Public Knowledge Project Team
1 Like
orsova
July 31, 2023, 2:44pm
9
Sincere apologies. Appreciate the correction.
It didn’t even occur to me that I was effectively addressing the same people in two places.
1 Like
Hi @orsova ,
No worries – and thanks for following up with the resolution!
Regards,
Alec Smecher
Public Knowledge Project Team
1 Like
orsova
August 1, 2023, 1:45pm
11
Hi Alec,
I have another issue, to do with the Citations plugin, open over on Github. Would it be acceptable for me to close that issue over there, and then post it here? It seems like I’d have a better chance of getting more eyeballs on it here - but I don’t want to double up.
asmecher
Closed
August 7, 2023, 3:00pm
12
This topic was automatically closed after 7 days. New replies are no longer allowed.