XR Product Manager

XR Product Manager [Paid] 2.1.0

No permission to buy (£15.00)
I am getting this error when trying to upload a product image:
Code:
Server error log
LogicException: Cannot save with validation errors. Use validate() to ensure there are no errors. (First error: Please enter a valid message.) src/XF/Service/ValidateAndSavableTrait.php:36
Stack trace
#0 src/addons/XR/PM/Admin/Controller/Product.php(470): XR\PM\Service\Version\Editor->save()
#1 src/XF/Mvc/Dispatcher.php(362): XR\PM\Admin\Controller\Product->actionVersionEdit(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XR\\PM:Product', 'Versionedit', Object(XF\Mvc\RouteMatch), Object(XR\PM\Admin\Controller\Product), NULL)
#3 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XR\PM\Admin\Controller\Product), NULL)
#4 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#6 src/XF.php(806): XF\App->run()
#7 admin.php(15): XF::runApp('XF\\Admin\\App')
#8 {main}
Request state
array(4) {
  ["url"] => string(51) "/admin.php?product-manager/products/versions/1/edit"
  ["referrer"] => string(102) "https://xf-addons.com/admin.php?product-manager/products/xf.1/edit"
  ["_GET"] => array(1) {
    ["product-manager/products/versions/1/edit"] => string(0) ""
  }
  ["_POST"] => array(9) {
    ["_xfToken"] => string(8) "********"
    ["version_string"] => string(5) "1.0.0"
    ["version_details_html"] => string(0) ""
    ["changelog"] => array(1) {
      [0] => string(0) ""
    }
    ["product_attach_hash"] => string(32) "fa1d3203b01591e6403a0017c2d9608f"
    ["product_attach_hash_combined"] => string(87) "{"type":"xr_pm_product_version","context":[],"hash":"fa1d3203b01591e6403a0017c2d9608f"}"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(81) "/admin.php?product-manager/products/xf.1/edit"
  }
}
Any ideas @Chris D

Thanks,
Itworx4me
 
I'll look into it but for now you'll need to investigate what would be causing the "Please enter a valid message" error that is reported inside this error.

It sounds like maybe you're saving something in the version message/details that isn't valid.
 
It sounds like maybe you're saving something in the version message/details that isn't valid.
When you edit a listing and you choose to edit the product it takes you to the edit version screen. When you only choose to upload a new file and hit save that is where the Please enter a valid message comes into play. If you fill out the version detail and change log item you don't the error message.
 
Another curious question? Why does the product and thumbnail upload show a image.
Screenshot 2025-03-07 154000.webp

But when you go to the products page it show a box with 3 dots?

Screenshot 2025-03-07 154056.webp


Thanks,
Itworx4me
 
Back
Top Bottom