-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Short description of the issue
When a image field limited set to 1, when upload another image to the field in a page, error occurs
Recoverable Fatal Error: Argument 1 passed to ProcessWire\Pageimage::setOriginal() must be an instance of ProcessWire\Pageimage, null given, called in /home/web/processwire/WireCore-3.0/core/PageimageVariations.php on line 257 and defined (line 1334 of /home/web/processwire/WireCore-3.0/core/Pageimage.php)
Expected behavior
Page save without any error
Actual behavior
Database record of the image not deleted.
Optional: Screenshots/Links that demonstrate the issue
Steps to reproduce the issue
- Create an image field and set limit to 1. The assign it to a tempate.
- edit a page with that tempage
- upload a image to the image field and click save.
- upload another image to the field and click save.
- Error shown
Setup/Environment
PHP 5.6
MariaDB 10
ProcessWire 3.0.137
Metadata
Metadata
Assignees
Labels
No labels