Problem With Deleting Images - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Problem With Deleting Images

S-D CONSULTING

S-D CONSULTING

SP Page Builder 3 months ago

Hi, I've encountered a problem managing images, especially when it comes to deleting them.

Normally, on all the websites I manage, I manage images both from JCE (which I use as an alternative editor) and from PageBuilder.

I'm working on a new project and thought it was a problem with that, but after testing on other websites, I realized the problem is widespread across all of them because I don't perform this operation often.

If I upload an image from JCE and upload it to a folder, if I then manage the same image from PageBuilder, I can see it, but it won't let me delete it. I checked the server to see if it could be a permissions issue, but it's not, nor is it a server issue; there's not even an error log.

It seems that if the images aren't managed directly by PageBuilder, it can't manage their properties or delete them.

I tried to determine if the problem was the webP format (which still causes problems loading from the Joomla article in PageBuilder), but I'm having the same problem with a common jpg image.

To be sure, I've tested it on several websites, and they all have the same problem, even on different servers.

0
12 Answers
S-D CONSULTING
S-D CONSULTING
Accepted Answer
3 months ago #198964

While I wait for a response, I'd like to point out that the problem doesn't occur in JCE, whether I upload images from PageBuilder or JCE itself. I think there's a problem with PB's image indexing that's probably causing a conflict.

The same problem occurs even if I upload the image via FTP. From JCE, I can easily manage it, move it, rename it, and delete it. From PageBuilder, I can see it if I access that directory, but I can't delete it.

It's a big problem.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 months ago #199004

Hello S-D CONSULTING,

Thank you for reaching out to our technical support forum. I’m sorry to hear about the trouble you’re experiencing. Rest assured, I will look into this issue for you and work to resolve it as quickly as possible.

If you could kindly provide any additional information regarding the issue, it would greatly help me investigate and address it more efficiently. Please record a screencast and share via any platform like Google Drive, Files FM etc. I will check the issue on my localhost and update you.

Best regards

0
S-D CONSULTING
S-D CONSULTING
Accepted Answer
3 months ago #199012

HI Ofi Khan, Unfortunately, I don't have any more information to add. We don't often manage deletions directly from PageBuilder. It often happens that photos are uploaded directly from the editor (JCE in this case), but what surprised me is that PageBuilder won't even let me delete photos uploaded directly from FTP (and with the correct read and write permissions).

Before writing, I checked to see if this was happening on other websites, and I tested three or four others, and they all have the exact same problem.

Some information:

  • The websites are all up-to-date, both in terms of PageBuilder and Joomla version.
  • They don't have any other specific solutions. We don't tend to install many components and plugins, but rather use components or plugins from the same vendor if needed (PageBuilder is a constant on all sites).
  • The tested servers are on different servers (Debian 11 or Debian 12, all with PHP version 8.3 and InnoDB).

I checked the error logs, but found nothing. On the new website we're working on (which is the first website we noticed the problem on, so it's a new installation), PageBuilder initially prevented us from navigating to the "folder" section. When we set "images" as the default directory for both images and files in the Joomla options, it started working.

In that case, a problem was reported on: /plugins/system/helixultimate/src/Platform/Classes/Image.php on line 85

PHP Warning: undefined variabile $img in this file

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 months ago #199364

Please go to this location:

plugins/system/helixultimate/src/Platform/Classes/

and replace Image.php file with the attached file. You need to unzip the file and then replace.

Image.php.zip

0
S-D CONSULTING
S-D CONSULTING
Accepted Answer
3 months ago #199508

Hi, not work.

I replaced the file you reported, cleared the site cache, and tried uploading a file from JCE to try deleting it from PageBuilder, but unfortunately, I still get the same error.

Meanwhile, I restored the previous image.php.

The problem, I see, isn't the file format. I've also tried JPG, PNG, and WEBP, but the same error occurs and it doesn't delete the file; it only deletes files uploaded from PageBuilder.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 months ago #199793

Sorry, I am having difficulty to understand the faulty behavior. It would be helpful if you could record a screencast showing the issue. Then upload it on Google Drive or We Transfer or Files FM and share a link. I can see where the problem is and help you quickly.

0
S-D CONSULTING
S-D CONSULTING
Accepted Answer
2 months ago #199963

Hi, as I was telling you, it's a general problem that happens on all websites, so I took your installation (REVSTAT), updated all pagebuilder plugins and templates, and simulated the same problem.

As you can see, I uploaded an image in JCE, created a "folder_test" folder, and uploaded a sample image (in this case, a PNG format, but it happens with all formats). I exited, as you'll see in the video, and went to PageBuilder, opened the ABOUT page, and clicked on the "image" addon. I accessed the image dashboard, looked for the folder I'd created with JCE, logged in, and tried deleting the PNG I'd previously created. As you'll see, an error appears. It happens on all websites.

https://app.screencast.com/LFn76b2MOGA9F

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 months ago #200104

Thanks for the clarification video. Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials. Make sure that you have a full site backup before sharing.

0
S-D CONSULTING
S-D CONSULTING
Accepted Answer
2 months ago #200110

It happens on every server I use. I can't provide credentials because it's all protected. Just simulate exactly what I did in the video and you'll see the same problem.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 months ago #200137

Okay, is it possible to share a backup? Then I could check it on my local installation. I do not have JCE editor.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 months ago #200576

Thanks for the access. After investigation, I have found that images cannot be deleted from SP Page Builder -> Media. It seems like a bug. I have asked the developer team to check it. Hopefully, it will be fixed in the next update.

0
S-D CONSULTING
S-D CONSULTING
Accepted Answer
2 months ago #200340

Hi, I managed to move the test installation to an area accessible to you. I'll send you the credentials.

Please let me know when you're done with your tests so I can secure this installation.

I await your

0