These are chat archives for collectiveaccess/support

6th
Jul 2018
sheggen
@sheggen
Jul 06 2018 14:18
Inside of the Dimensions metadata element, I created a new container, and inside the container created three text field subelements. I want to delete them all now because they aren't used. The server returns a 500 error, likely after it times out waiting for mysql. I'm not seeing anything helpful in my log files for apache, mysql, or CA. Any suggestions where else to look?
sheggen
@sheggen
Jul 06 2018 14:45
Here's the only log that points to the cause, in apache's error.log: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/providence/app/lib/core/Configuration.php on line 146, referer: http://localhost/providence/index.php/administrate/setup/Elements/Delete/parent_id/45/element_id/47
Kehan Harman
@kehh
Jul 06 2018 15:59
@sheggen you can increase the execution time to a much higher number temporarily if you edit your php ini file (depends on the operating system where this is set. It sounds like you might have some values associated with these attributes. If that doesn't work then manually deleting the values from ca_attribute_values where the element_id matches the element_id of these elements might be able to help you work around this problem.
sheggen
@sheggen
Jul 06 2018 16:57
Thanks @kehh . Turns out the query to delete was trying to hit 40k records, and it was doing exactly what it said; timing out. updating the php.ini and my.cnf temporarily resolved the issue.
Tim Duckworth
@EdgarCayceARE_gitlab
Jul 06 2018 19:04
Hi all, I recently installed CA, when I load up the login page I get Warning: sizeof(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\app\lib\core\BaseObject.php on line 90
When I log in, I get numerous errors and skewed visuals, did I miss something?
CollectiveAccess
@collectiveaccess
Jul 06 2018 19:10
@EdgarCayceARE_gitlab You're using PHP 7.2 I gather?
The current release of CA doesn't full support it. We're working on a new release that does
Tim Duckworth
@EdgarCayceARE_gitlab
Jul 06 2018 19:11
Yes,
uh oh
got it, thank you
CollectiveAccess
@collectiveaccess
Jul 06 2018 19:11
You can pull the "develop" branch on GitHub
which does support PHP 7.2 if you want
Tim Duckworth
@EdgarCayceARE_gitlab
Jul 06 2018 19:12
ok I'll try that
thank you!
Tim Duckworth
@EdgarCayceARE_gitlab
Jul 06 2018 20:33
I tried installing developer and the install page failed to load with a very lengthy error, I then tried installing master fix and the installer failed halfway through with "cannot declare class eventlog because it is already in use". Would it be easier to just go back to an older version of php?
CollectiveAccess
@collectiveaccess
Jul 06 2018 20:33
Whatever you prefer
It installs fine on our 7.2 servers
Tim Duckworth
@EdgarCayceARE_gitlab
Jul 06 2018 20:34
alright, thank you