Upgrade 4.1 with Unavailable plugin-Admin access blocked

Upgrade 4.1 with Unavailable plugin-Admin access blocked

by Moses M. Mwebaze -
Number of replies: 9
I updated Moodle to 4.1 but the administrator is restricted access to the site administrator part. 

When the site administrator link is clicked, the error below is thrown.

 The referred to Evernote version cannot be used with the Moodle 4.1 version.

How do I go about resolving this? 


Exception - Failed opening required '[dirroot]/portfolio/evernote/lib.php'(include_path='[dirroot]/lib/pear:.:/usr/local/php8.1/lib/php')

 
=========
Debug info:
Error code: generalexceptionmessage

Stack trace:
  • line 788 of /lib/portfoliolib.php: Error thrown
  • line 542 of /lib/portfoliolib.php: call to portfolio_instance()
  • line 383 of /admin/settings/plugins.php: call to portfolio_instances()
  • line 8877 of /lib/adminlib.php: call to require()
  • line 4510 of /lib/navigationlib.php: call to admin_get_root()
  • line 4373 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 838 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 967 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 110 of /blocks/admin_bookmarks/block_admin_bookmarks.php: call to moodle_page->__get()
  • line 337 of /blocks/moodleblock.class.php: call to block_admin_bookmarks->get_content()
  • line 231 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
  • line 1222 of /lib/blocklib.php: call to block_base->get_content_for_output()
  • line 1280 of /lib/blocklib.php: call to block_manager->create_block_contents()
  • line 377 of /lib/blocklib.php: call to block_manager->ensure_content_created()
  • line 4101 of /lib/outputrenderers.php: call to block_manager->region_has_content()
  • line 53 of /theme/boost/layout/drawers.php: call to core_renderer->blocks()
  • line 1477 of /lib/outputrenderers.php: call to include()
  • line 1403 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2979 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 390 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Average of ratings: -
In reply to Moses M. Mwebaze

Re: Upgrade 4.1 with Unavailable plugin-Admin access blocked

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
The recommended way is always to a test upgrade to find these hickups. And the recommended "downgrade" is to restore the backup you made before the upgrade.

If you've left the recommended paths, you can try your luck by moving the plug-in directory away from the Moodle code tree.
In reply to Visvanath Ratnaweera

Re: Upgrade 4.1 with Unavailable plugin-Admin access blocked

by Moses M. Mwebaze -
Thanks for the response.

Downgrading is not an option. We had issues we were attempting to solve only that the Evernote plugin is rejected in Moodle 4.1.

I removed the plugin from the Moodle code but the error still throws for Admin only!!!
In reply to Moses M. Mwebaze

Re: Upgrade 4.1 with Unavailable plugin-Admin access blocked

by Ken Task -
Picture of Particularly helpful Moodlers
Please see:
Evernote Plugin part of a set.   Manually remove both.

Are we attempting a hyperjump from 3.5 to 4.1?
IF so, that won't work without hops in-between 3.5 and 4.1.
Reason I ask ... the plugin of which you speak highest version is 3.5!

'SoS', Ken

In reply to Ken Task

Re: Upgrade 4.1 with Unavailable plugin-Admin access blocked

by Moses M. Mwebaze -
Thanks.

I migrated from 3.6, 3.11 to 4.1

Let's try with the plugin 3.5 and see what comes up
In reply to Moses M. Mwebaze

Re: Upgrade 4.1 with Unavailable plugin-Admin access blocked

by Ken Task -
Picture of Particularly helpful Moodlers
It's your site! smile
But be forewarned ... it might work now, but what of the next update/upgrade to your moodle?  4.1 is now 4.1.6+ and will continue to get updates until 11 December 2023 only (that's 8 days from now) ... for security updates until it's end of life ... 8 December 2025

Reference:

Or are you now done upgrading and will remain at 4.1 for same number of years ... yes, years ... 3.6 was released may of 2020?

'SoS', Ken


In reply to Ken Task

Re: Upgrade 4.1 with Unavailable plugin-Admin access blocked

by Moses M. Mwebaze -
It's pretty much my site. I set it up a couple of years ago and I manage it on behalf of my client.

I installed the 3.5 file and then edited the PHP file below by replacing the unsupported { } with [ ]

/portfolio/evernote/lib/evernote/transport/THttpClient.php

The admin now has full access. I guess I can now proceed to 4.3
In reply to Moses M. Mwebaze

Re: Upgrade 4.1 with Unavailable plugin-Admin access blocked

by Ken Task -
Picture of Particularly helpful Moodlers
Congrats!
Guess you could fork it and put that into your own repo for moodle ... your moodle is using git ... I assume.

'SoS', Ken

In reply to Moses M. Mwebaze

Re: Upgrade 4.1 with Unavailable plugin-Admin access blocked

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
> Downgrading is not an option.

Then you need to upgrade the plug-in. Get the service of a developer, for example.

> I removed the plugin from the Moodle code

So removing the plug-in *is* an option? Then you can uninstall it in the old 3.x and then upgrade.

Talking of upgrades, you know the chart http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases, right?