I'm trying to change the value of a set using the set() function, and it seems to change, but does not change in the database. Any idea what is going on?
CollectiveAccess
@collectiveaccess
@moronic Are you loading an existing record? If so then be sure to set the access mode to ACCESS_WRITE
and then call update() to save
Eg.
$obj->set("field", "value");
$obj->setMode(ACCESS_WRITE);
$obj->update();
Moronique
@moronic
Thank you very much. I just knew I had missed something obvious.
Moronique
@moronic
Hehe, I was going to ask about why I couldn't get a method to work. Then I discovered I was using dot notation instead of arrow... I chose my nym with care.
ericwm
@eriwm
Hi All, been away for 6 weeks and now trying to catch up with any new developments in 1.7. Did a git pull this morning and tried viewing an uploaded PDF document. I still have the same problem, which is that the viewer shows on the left hand side thumbnails of all the pages in the document but I cannot get them to open in the main screen. This still has a small rotating block in the middle. Is there possibly something wrong on my side or are you still working on this. Thanks .
Moronique
@moronic
When finding sets I get this: "PHP Warning: Missing argument 1 for BaseModel::find(), called in /providence/app/lib/core/BaseModel.php on line 10399 and defined in /providence/app/lib/core/BaseModel.php on line 10386" Can't seem to figure out what I'm doing wrong with the call.
Kehan Harman
@kehh
@blackadder78
Is there a command line argument for rebuilding hierarchical indices? I'm looking in CLIUtils, but I'm not finding anything.
I had to do this last week and here's a gist that does it. Place in the root of your CA install and run using php
Hi, can I disable the zip-packaging of the downloaded media somewhere? This wasn't happening in previous versions I believe. Thanks
CollectiveAccess
@collectiveaccess
It should only zip when there are multiple files being downloaded, but there are issues with some versions where even a single file ends up zipped. This is definitely fixed in develop
mstrnad
@mstrnad
@collectiveaccess Thanks. We are at 1.6.1, Schema revision 126, Release type GIT. So what you are saying is to reinstall with the latest GIT clone? If there was a way to disable it altogether just in config, I wouldn't mind (no scenario for us when multiple files are downloaded via the providence interface).
CollectiveAccess
@collectiveaccess
No, you don't have to do that.
I'll push a 1.6.2 release this week
Kehan Harman
@kehh
:+1:
CollectiveAccess
@collectiveaccess
@mstrnad The zip fix is now in the master-fix branch, which is the basis of 1.6.1; I expect to roll up a 1.6.2 branch tomorrow
ericwm
@eriwm
_
ericwm
@eriwm
Hi, Further to my earlier query regarding progress with 1.7 develop I obviously made an error with my version update. I have since corrected this and see that there is now a new version of the document viewer. I do however seem to have the same problem in that when I try to view a pdf document I cannot get the selected page to show in the main screen. I have attached a screen shot for info. Any advice would be appreciated thanks.
Sophie
@pinkfishies
@eriwm We are actively testing the new viewer - when did you last update version 1.7?
ericwm
@eriwm
@pinkfishies 5 September. I also noted that if I select (in media preferences) browser's (I am using Firefox) built in viewer 1.7 seems to default to its own viewer.
Jeroen
@teranex
Hi. I'm hosting a Collective Access instance, but I'm running in some serious trouble with high load on the server. This seems to be related to image processing. I already changed to queue processing, and setup the cron job to process the queue, but it seems that this causes the server to get a very high load. Initially I was using ImageMagick but due to some colorprofile problems I switched to GD. Is there a possibility to completely disable the tilepic generation, and just view the original image instead?
CollectiveAccess
@collectiveaccess
Yeah, you can do that by modifying media_processing.conf to omit the tile pics versions
and then edit media_display.conf to use versions other than tilepic for display
Jeroen
@teranex
@collectiveaccess ok, i'll give that a try, thx
CollectiveAccess
@collectiveaccess
You might also want to try install GraphicsMagick + PHP gmagick
it's much much faster than anything else
Jeroen
@teranex
aha, that is also interesting , thx!
CollectiveAccess
@collectiveaccess
good luck
Jeroen
@teranex
thx :)
CollectiveAccess
@collectiveaccess
@eriwm If your system predates the new viewer you'll need to reprocess your media to generate zoomable versions of each page
ericwm
@eriwm
@collectiveaccess . Thanks for the feedback. I was uploading my media via "add media representation" in an editor screen I named "Object Description" This screen is one of four others under my "Add New Object" . Since my latest update I can no longer access the "Object Description" screen. When I click on this I get a blank screen with Save, Cancel and Delete in the top left hand corner. Now I cannot delete or upload new media via this UI anymore. any suggestions.
stacia9904
@stacia9904_twitter
Our CA site is slow and crashy, and we're getting the following message: [Fri Sep 09 11:06:45.947020 2016] [:error] [pid 5132:tid 880] [client 188.143.232.13:48991] PHP Fatal error: Maximum execution time of 120 seconds exceeded in D:\Apache24\htdocs\app\lib\core\Db\mysql.php on line 298, referer: http://libraryarchives.arlingtonva.us/index.php/Search/advanced/objects Any ideas?
Also The line 298 mentioned is this: if (!($r_res = mysql_query($vs_sql, $this->opr_db))) {
CollectiveAccess
@collectiveaccess
sounds like a database query is hanging
I'd look at the MySQL log and process list
stacia9904
@stacia9904_twitter
Hmm, nothing suspicious except perhaps: 2016-09-09 10:39:28 15504 [Note] InnoDB: The log sequence numbers 46823166251 and 46823166251 in ibdata files do not match the log sequence number 46824519938 in the ib_logfiles! 2016-09-09 10:39:28 15504 [Note] InnoDB: Database was not shutdown normally! 2016-09-09 10:39:28 15504 [Note] InnoDB: Starting crash recovery.
CollectiveAccess
@collectiveaccess
do show processlist
are there processes hanging?
stacia9904
@stacia9904_twitter
windows install - task manager shows top two processes: Mysqld.exe (32-bit) is using 24% CPU and 1,364,188K RAM Httpd.exe (32-bit) is using 0% CPU and 541,468K RAM
cascedu
@cascedu
Hello, I'm having a bit of trouble with the objectSplitter during a Data Import (importing an XSLX file)...I'd like to have one of my source columns be split up into separate instances of the same metadata element: i.e. a record in the source column (S.W. Hason; R.T. Fuller) being split such that each of those two names becomes a separate "Name" value after an import. Right now, the mapping rule in my Excel importer spread looks like this: Mapping | 4 | ca_objects.names | objectSplitter | {"attributes":{"names":"^4"},"delimiter": ";"} but that throws me an error message. Am I missing a refinery parameter?
thanks for any help...sorry if that was all a little confusing!
CollectiveAccess
@collectiveaccess
@stacia9904_twitter In the mysql client run show processlist and see what that reports