Topic: Issues with photos
I recently moved our website onto a server that we have more control over, however this seems to have caused a few teething problems.
When a user uploads a photo (on the Casual records form), the photo does not appear after the upload completes. If they ignore this anomaly and hit save regardless, then the photo does appear on the home page and is attached to the record if viewed from the 'My Records' page or the 'My Photos' page.
I have also been told that photos area also not viewable on the iRecord verification pages, although the test I just performed contradicts this report.
In case they are relevant, when I edited the test record I did get the following errors.
On Edit:
Warning: unlink(sites/all/modules/iform/client_helpers/upload/o_1b5jfku6b1qc11fcg841bsq1j8h8.jpg): Permission denied in helper_base::purgeFiles() (line 2312 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform\client_helpers\helper_base.php).
Warning: unlink(sites/all/modules/iform/client_helpers/upload/o_1b5jflarksikde11nigtj1umth.jpg): Permission denied in helper_base::purgeFiles() (line 2312 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform\client_helpers\helper_base.php).
Warning: unlink(sites/all/modules/iform/client_helpers/upload/o_1b5jgg9mieb91kivknb43d8hl8.jpg): Permission denied in helper_base::purgeFiles() (line 2312 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform\client_helpers\helper_base.php).
Warning: unlink(sites/all/modules/iform/client_helpers/upload/o_1b5jfku6b1qc11fcg841bsq1j8h8.jpg): Permission denied in helper_base::purgeFiles() (line 2312 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform\client_helpers\helper_base.php).
Warning: unlink(sites/all/modules/iform/client_helpers/upload/o_1b5jflarksikde11nigtj1umth.jpg): Permission denied in helper_base::purgeFiles() (line 2312 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform\client_helpers\helper_base.php).
Warning: unlink(sites/all/modules/iform/client_helpers/upload/o_1b5jgg9mieb91kivknb43d8hl8.jpg): Permission denied in helper_base::purgeFiles() (line 2312 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform\client_helpers\helper_base.php).
And on Save:
Warning: unlink(sites/all/modules/iform/client_helpers/upload/o_1b5jfku6b1qc11fcg841bsq1j8h8.jpg): Permission denied in helper_base::purgeFiles() (line 2312 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform\client_helpers\helper_base.php).
Warning: unlink(sites/all/modules/iform/client_helpers/upload/o_1b5jflarksikde11nigtj1umth.jpg): Permission denied in helper_base::purgeFiles() (line 2312 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform\client_helpers\helper_base.php).
Warning: unlink(sites/all/modules/iform/client_helpers/upload/o_1b5jgg9mieb91kivknb43d8hl8.jpg): Permission denied in helper_base::purgeFiles() (line 2312 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform\client_helpers\helper_base.php).
The record and photo successfully deleted after this process.
I am guessing it is something to do with permissions on the new server, but any pointers would be gratefully received.
Dave
Senior IT & Records Officer,
15 Talbot Road, Talbot Green, Pontyclun, CF72 8AD
www.sewbrec.org.uk, www.sewbrecord.org.uk