ThorntonStuart / SimpleCloner

An entry cloning module compatible with EE3
5 stars 3 forks source link

Ansel error when cloning entry #16

Open jeremydouglas opened 6 years ago

jeremydouglas commented 6 years ago

When I clone an entry I receive the below error. I'm on EE 3.5.14. I don't have Ansel installed.

Undefined variable: ansel_fields

user/addons/simple_cloner/ext.simple_cloner.php, line 468 show details

Notice

Undefined variable: ansel_fields

user/addons/simple_cloner/ext.simple_cloner.php, line 601 hide details

Severity: E_NOTICE

I removed the references to Ansel and now I can clone entries without errors.

ThorntonStuart commented 6 years ago

Hi Jeremy. I've made a PR for this and will look to do a minor release to resolve this. I don't really work with EE anymore so if you'd be happy to test it then I can release a version with this fix?

jeremydouglas commented 6 years ago

Sounds great.

KevinPDX commented 6 years ago

@jeremydouglas @ThorntonStuart I am also receiving the above errors, and the following as well: Undefined variable: ansel_bloqs_fields user/addons/simple_cloner/ext.simple_cloner.php, line 580 Invalid argument supplied for foreach() user/addons/simple_cloner/ext.simple_cloner.php, line 601 Array to string conversion ee/legacy/database/drivers/mysqli/mysqli_driver.php, line 503 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Array' in 'field list': INSERT INTOexp_channel_data(entry_id,channel_id,site_id,....) ee/legacy/database/drivers/mysqli/mysqli_connection.php:122

I should also note that i am running Bloqs v4.0.0 and Simple Cloner v2.0.0 Also of note - I am NOT receiving any sort of errors on another site running the Bloqs module v3.0 and Simple Cloner module v1.2