processwire / processwire-issues

ProcessWire issue reports.
44 stars 2 forks source link

Error: Call to a member function editUrl() on null #1918

Closed Toutouwai closed 4 months ago

Toutouwai commented 5 months ago

Short description of the issue

A recent commit on the dev branch causes error "Call to a member function editUrl() on null" at /processwire/module/

2024-05-07_153123

Setup/Environment

ryancramerdesign commented 4 months ago

@Toutouwai What's the environment where you are seeing it? Is it in the page editor or outside of it?

adrianbj commented 4 months ago

@ryancramerdesign - it's when you click on the "Modules" menu item in the PW admin, hence the /processwire/module/ path noted above.

ryancramerdesign commented 4 months ago

@adrianbj Thanks, I was able to duplicate that after setting $config->moduleInstall('upload', 'debug'); in /site/config.php, and then viewing the Modules page. I've pushed a fix.