Hi José,
I just wanted to update you on this I raised in July.
We upgraded to 2.5.2, when generating the same finding aid, we got same errors:
php[1522]: > ERROR(EAD-EXPORT): PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/atom/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyDidElement.xml.php on line 137
php[1522]: > Exception: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'output' at row 1
After ran ALTER TABLE job MODIFY output MEDIUMTEXT, still getting warnings, 'Data too long' error was gone, but got memory error:
php[1738]: > ERROR(EAD-EXPORT): PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/atom/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyDidElement.xml.php on line 137
php[1738]: > ERROR(EAD-EXPORT): PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in /usr/share/nginx/atom/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyDidElement.xml.php on line 167
php[1738]: > ERROR(EAD-EXPORT): PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 937984 bytes) in Unknown on line 0
Then I increased memory_limit from 512M to 2048M( tried 1024M, had same error), the finding aid was generated successfully.
Our database size doesn't seem to increase after alerted the job table:
Before:
SELECT table_schema "database", sum(data_length + index_length)/1024/1024 "size in MB" FROM information_schema.TABLES GROUP BY table_schema;
+--------------------+--------------+
| database | size in MB |
+--------------------+--------------+
| atom | 386.92187500 |
ALTER TABLE job MODIFY output MEDIUMTEXT;
Query OK, 3677 rows affected, 1 warning (0.42 sec)
Records: 3677 Duplicates: 0 Warnings: 1
After:
SELECT table_schema "database", sum(data_length + index_length)/1024/1024 "size in MB" FROM information_schema.TABLES GROUP BY table_schema;
+--------------------+--------------+
| database | size in MB |
+--------------------+--------------+
| atom | 386.92187500 |
We are now testing on our Staging site.
Thanks for your help.
Cindy