Jump to content

Unable to insert images in a text field


Recommended Posts

Posted

I can upload images to a page. However, when I try to insert it in a text field, I get a blank image selector.

I'm working with Processwire 3.0.259, PHP 8.3.33. I tried, in local development, to replace the PHP with older versions, but the site doesn't work with them any more with <8.3.33.

When I try to insert an image in the text field, I get this:

  • with cke editor: a blank "Select image";
  • with tinymce: a brief error message, followed by a blank "Select image". Here's the message:

error2026-10-16.thumb.jpg.361f8ad85f8e0b08e177805c09157604.jpg

In fact recently I get frequent errors "Attempt to read property <whatever> on null".

I recently uploaded modules Image Library and Image Reference (this one corrected from a bug on reading null).

Any ideas? Thanks in advance.

Posted

Thank you, @adrian

I suspect the problem with <Select image> comes from the fieldtype Image Reference. Probably that module or its hooks was breaking something. After removing the field from the template, the <Select image> is working again.

It is a pity, because the ability to reference images would save me many hours of work (editing time) and a lot of server space.

As for the other problems (deprecated reading on null values), I will need more time to test.
As a last resource, I will follow your suggestion to install a dev version - not eager to do that on a production site, to be honest.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...