Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Error adding images

admin

Solved by Daniel Wrightson View solution

Started by Daniel Wrightson 1 year ago · 5 replies · 102 views
1 year ago

I'm getting a strange error when I try to add an image to a page. The site has been running for years, is on a theme based on Typhoon, the server is running fine, but when I add an image to a page the image get a big exclamation mark next to it. On mouseover I get what looks like the HTML to an error page.

Screenshot 2025-05-01 at 12.32.48|347x500

The dev site works fine, and I added images to the public site last week with no problems... I'm a bit lost.

1 year ago

It has resolved itself. 30 mins of madness?

👍 1
1 year ago

I'm getting the same error. The main message in the source code HTML that pops up is "Enable JavaScript and Cookies to continue".

On the GRAV logs I'm getting

PHP
 `/home/invitati/public_html/vendor/filp/whoops/src/Whoops/Run.php(514): Whoops\Run->handleError() 
 /home/invitati/public_html/system/src/Grav/Common/Errors/SystemFacade.php(43): Whoops\Run->handleShutdown() 
 [internal function]: Grav\Common\Errors\SystemFacade->handleShutdown() 
 {main}`

On the browser console I'm getting:
Experiment add-an-image-to-pdf-with-alt-text-rollout has unknown featureId: addAnImageInPDF RemoteSettingsExperimentLoader.sys.mjs:954:21

`TypeError: watcherInfo.watcher.conn is null

onConnectionClosed resource://devtools/server/connectors/js-process-actor/DevToolsProcessParent.sys.mjs:209

TXT
_emit resource://devtools/shared/event-emitter.js:242
emit resource://devtools/shared/event-emitter.js:186
emit resource://devtools/shared/event-emitter.js:330
onTransportClosed resource://devtools/server/devtools-server-connection.js:478
close resource://devtools/shared/transport/local-transport.js:175
close resource://devtools/shared/transport/local-transport.js:170
close resource://devtools/client/devtools-client.js:157
destroy resource://devtools/shared/commands/index.js:107

event-emitter.js:257:19`

Tried to send a 'target-destroyed-form' event on an already destroyed actor 'watcher' Actor.js:59:15

NotFoundError: No such JSProcessActor 'BrowserToolboxDevToolsProcess'

I have a dev site on a local server and everything is still running fine on there.

I have no idea what might be going on, all help appreciated.

1 year ago

@dan-james, In the first image you shared, it seems an entire page, titled "Just a moment", has been returned to Admin.

  • I've searched the Grav+Admin code source, but it does not contain "Just a moment"
  • If Grav were to handle an error, I would suspect another result.
  • Maybe there is something between Admin and the Grav server in your production environment that returns a page?
    Cloudflare perhaps?
  • When searching the web for Cloudflare "just a moment", there are quite a few hits about a so called "Just a moment Page"...
    • About it being an issue
    • And how to solve it

Cloudfare would be my first pick and I cannot help you with that...

👍 1
last edited 05/16/25 by pamtbaau
1 year ago

Thanks - I'll try turning Cloudflare off and see if that solves it ... if it does, I'll investigate further.

1 year ago Solution

Yes, it was Cloudflare's Security Rules that were injecting a challenge. I've made a rule so they don't apply if i'm uploading images within admin and it's solved the problem.

Cheers for spotting that it was Cloudflare, @pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 12 hours ago
Support · by Anna, 3 days ago
2 60 14 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago