Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Old Grav installation after updating the Admin plugin

first-time plugin

Started by JakobDB 6 days ago · 1 replies · 87 views
6 days ago

Hi,

We are experiencing an issue with an older Grav installation after updating the Admin plugin.

Our current setup is:

  • Grav: v1.6.15
  • Admin Panel: v1.9.9
  • We only have access to the Grav Admin interface, not FTP/SSH/server files.

The problem started after someone clicked Update on the Admin plugin. Since then, when we try to open Pages, Grav shows the following server error:

Call to undefined method Grav\Plugin\Admin\Admin::enablePages()

The rest of the Admin interface is still accessible, including Plugins, Tools and Logs.

In the logs, the error appears as:

CRITICAL - Call to undefined method Grav\Plugin\Admin\Admin::enablePages()

We also see repeated warnings such as:

Plugin 'instagram-feed' enabled but not found! Try clearing cache with 'bin/grav clear-cache'

and some template errors like:

Template "modular/blank.png.twig" is not defined

However, the main issue is that Pages can no longer be opened after the Admin plugin update.

We suspect that the Admin update may have left the installation in an incompatible or partially updated state, possibly involving a mismatch between Grav 1.6.15 and the Admin plugin files.

We do have backups listed in Grav Admin, but the download button for the backups does not start a ZIP download, so at the moment we do not have a local backup copy.

What would be the safest way to restore a compatible Admin version or repair the installation without access to FTP/SSH?

Thanks in advance for any help.

5 days ago

Those versions you've mentioned are old... very old...

At some point, about 7 years ago, Admin stopped initializing frontend pages, to boost performance. The function enablePages() was introduced. That change has lead to some breaking issues when migrating from Grav 1.6 to 1.7.

  • What was the version of Grav and Admin before someone hit the Upgrade button?

Suggestions:

  • Have a look at the docs Admin/Tools for Grav 1.7. The docs for Grav 1.6 have already been purched, but the function might have been available in 1.6 too.
    As the docs notes, you can roll back to a previous version of Grav, or plugin.
  • Your hoster probably creates daily backups of the entire system. If so, you can ask your hoster to restore a backup of the day before the upgrade.

Suggested topics

Topic Participants Replies Views Activity
Support · by Marcel, 4 days ago
0 80 4 days ago
Support · by ramenos, 7 days ago
3 101 6 days ago
Support · by gravinator, 2 weeks ago
3 228 7 days ago
Support · by Roger Parkinson, 2 weeks ago
3 308 2 weeks ago
Support · by Marcel, 2 weeks ago
4 258 2 weeks ago