-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to save items, import items, and display Neatline - .astext does not exist error #493
Comments
Hi Suzanne, I've passed along this issue to Neatline developers for further investigation. I'm not sure at the moment what is causing this error, but we have had some recent issues related to migrating older Omeka databases to sql 8.0. This error may be related, and one we haven't run into yet. Thank you for posting, and we will get back to you when we know more. Elizabeth |
Hi @sustasiula, Just to be clear, the item saving issue happens if you only have Neatline installed? Or does this occur if you have other plugins installed? And, you cannot save Neatline items or Omeka Items in general? Also, to help us debug your issue, could you share the output from your System Information page in your Omeka's admin panel? There's a link in the bottom left of the admin footer to a page that will display this information. |
Hello @jeremyboggs Thank you for your help. It is very much appreciated. The item saving issue happens only if Neatline is installed. I have a number of plugins installed because we want to fully test Omeka. I troubleshoot disabling all but key plugins (leaving only Neatline and a few other plugins installed) and experienced the same results. If I uninstall Neatline, Omeka works as expected. All Omeka Items (in the General Items tab) have issues with saving when Neatline is installed. I get an error (reported above) when saving but the item still saves. I am also unable to import items to Neatline. System Information |
Hello @jeremyboggs -
Thank you, Suzanne |
Hi @sustasiula , We're still looking into the issues as reported earlier, but in the meantime, your clarifications are similar to a previous user's issue #478. They were able to resolve with this recommendation: #478 (comment). This may or may not be relevant to your setup, but wanted to share just in case. Also, need to clarify that the issue with saving Omeka Items comes up when Neatline is installed and NeatlineTime and NeatlineFeatures are both disabled? And items are saving fine when just NeatlineTime or NeatlineFeatures is enabled? The issue with saving Omeka items may be separate from the missing New Record button, we'll continue looking into it. |
@eam5 To confirm - The "error-at-save" issue comes up both when Neatline is installed and NeatlineTime and NeatlineFeatures are both disabled AND when NeatlineTime and NeatlineFeatures are enabled. When trying to save, omeka gives the error message. Thank you so much for your assistance. |
We are having exactly the same issue... |
Also experiencing this issue, following an OS upgrade (to Ubuntu LTS 20.04) with corresponding MySQL upgrade (5 to 8). According to the MySQL devs, this could be related to a deprecated function call. In version 8+, the geolocation functions were modified: [https://mysqlserverteam.com/detecting-incompatible-use-of-spatial-functions-before-upgrading-to-mysql-8-0/] According to this, the function "AsText()" should now be "ST_AsText()" -- can this be modified directly in the Neatline plugin source? |
Found this reference in /Neatline/helpers/Mysql.php line 35:
I'll try modifying to ST_AsText and see what happens! |
Update: Modifying the helper function did eliminate the "AsText" error referenced above. AND the "New Record" button now appears. BUT the inability to name and save a new Neatline record remains, in keeping with the troubleshooting steps referenced above. The new record's title is fixed at [Untitled], and attempts to save generate a popup red error message above the map stating "There was an error - the record was not saved." |
@jdave23 @jamienk @ sustasiula Thanks for your comments and efforts here! We're trying, slowly, to get this working. We're looking into updating the code to remove any deprecated functions, and replace them with ones compatible with MySQL 8.0. Hopefully they'll be backwards compatible, but we'll test this as well. |
Update for everyone here - @jdave23 @jamienk @sustasiula - we have a potential patch for the errors occurring with MySQL 8.0. If you are https://github.com/scholarslab/Neatline/tree/bug/mysql-functions Please reply in this thread if the above branch resolves the issues for you, and if not, please provide an error log or further details if possible. Thank you for your patience! |
Hi, all - Happy to report that the new patch successfully addressed the Neatline issue in my instance. I installed this branch and all records were accessible and recognized: http://adiuva.me/neatline/show/interrogating-marxism Thanks for the good work!
|
@eam5 all working find here 👍. Any plans for a release with this fix? 😉 |
Fixed in e27de89. |
Hello,
I am an Archivist new to Neatline, and I'm having some initial issues. I am running Omeka Classic on VirtualBox LAMP Ubuntu. I installed the most recent versions of omeka (2.7.1), sql (8.0), and php (7.4.3) last week. I installed Neatline, Waypoints, Text, and Simile Time. I also have NeatlineTime installed. If I uninstall Neatline, I am able to save items without an error. If I add Text to the exhibit configuration, I am unable to display Neatline - I get an error. I am unable to search and import items on Neatline. I have uninstalled Neatline and resinstalled the plugin, and uninstalled the other plugins and reinstalled them as well.
When attempting to save an item, I get this error.
Omeka has encountered an error
Zend_Db_Statement_Mysqli_Exception
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: FUNCTION omeka.AsText does not exist in /var/www/html/application/libraries/Zend/Db/Statement/Mysqli.php:77
Stack trace:
#0 /var/www/html/application/libraries/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare()
#1 /var/www/html/application/libraries/Zend/Db/Adapter/Mysqli.php(388): Zend_Db_Statement->__construct()
#2 /var/www/html/application/libraries/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Adapter_Mysqli->prepare()
#3 /var/www/html/application/libraries/Omeka/Db.php(80): Zend_Db_Adapter_Abstract->query()
#4 /var/www/html/application/libraries/Omeka/Db/Table.php(647): Omeka_Db->__call()
#5 /var/www/html/application/libraries/Omeka/Db/Table.php(429): Omeka_Db_Table->fetchObjects()
#6 /var/www/html/plugins/Neatline/models/NeatlineRecordTable.php(53): Omeka_Db_Table->findBySql()
#7 /var/www/html/plugins/Neatline/NeatlinePlugin.php(179): NeatlineRecordTable->syncItem()
#8 /var/www/html/application/libraries/Omeka/Plugin/Broker.php(154): NeatlinePlugin->hookAfterSaveItem()
#9 /var/www/html/application/libraries/Omeka/Record/AbstractRecord.php(301): Omeka_Plugin_Broker->callHook()
#10 /var/www/html/application/libraries/Omeka/Record/AbstractRecord.php(548): Omeka_Record_AbstractRecord->runCallbacks()
#11 /var/www/html/application/libraries/Omeka/Controller/AbstractActionController.php(229): Omeka_Record_AbstractRecord->save()
#12 /var/www/html/application/controllers/ItemsController.php(88): Omeka_Controller_AbstractActionController->editAction()
#13 /var/www/html/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()
#14 /var/www/html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch()
#15 /var/www/html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
#16 /var/www/html/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#17 /var/www/html/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#18 /var/www/html/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#19 /var/www/html/admin/index.php(28): Omeka_Application->run()
#20 {main}
Thank you in Advance!
Suzanne
The text was updated successfully, but these errors were encountered: