Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Can not upload and attach media to an object

I can not get images to upload and show up anymore on this installation.  ( It worked (very slowly) before but had to re-install because password issues.
I have not changed any config files this is all original install from the pastperfect 5.0 version. 
Now when I upload an image to an object in media it times out and then comes back with an error, I can not find anything in the logs in collective access unless I am looking in the wrong area?
If I look in the media folder it shows the jpg as uploaded but then I get nothing. (See screenshot)
I have not changed any config files this is all original install from the pastperfect 5.0 version. 


Version information































Component

Version
Application version 1.7.5
Schema revision 147
Release type GIT
System GUID d8ae8683-f211-4d7e-876c-d4d657054e12
Last change log ID 3074


Search Engine: SQL Search






















Setting

Description
Status
MySQL is back-end database
The SqlSearch search engine requires that MySQL be the back-end database for your CollectiveAccess installation.

ok
SqlSearch database tables exist
The SqlSearch search engine requires that certain tables be present
in your database. They are installed by default and should be present,
but if they are not SqlSearch will not be able to operate.

ok



Media Processing Plugins



















































































Plugin

Info
Status
Audio Provides audio processing and conversion using ffmpeg
Incoming audio files will not be transcoded because ffmpeg is not installed.

Available
GD Provides limited image processing and conversion services using libGD
Didn't load because ImageMagick (command-line) is available and preferred

Not used
Gmagick Provides image processing and conversion services using ImageMagick via the PECL Gmagick PHP extension
Didn't load because Gmagick is not available
RAW image support is not enabled because DCRAW cannot be found

Not available
GraphicsMagick Provides image processing and conversion services using GraphicsMagick via exec() calls
Didn't load because GraphicsMagick executables cannot be found

Not available
ImageMagick Provides image processing and conversion services using ImageMagick via exec() calls to ImageMagick binaries
Available
Imagick Provides image processing and conversion services using ImageMagick via the PECL Imagick PHP extension
Didn't load because Imagick is not available
RAW image support is not enabled because DCRAW cannot be found

Not available
Mesh Accepts files describing 3D models
Available
Office Accepts and processes Microsoft Word, Excel and PowerPoint format documents
LibreOffice
cannot be found: conversion to PDF and generation of page previews will
not be performed; you can obtain LibreOffice at
http://www.libreoffice.org/

Available
PDFWand Provides PDF conversion services using ImageMagick or the
Zend_PDF library. Will use Ghostscript to generate image-previews of PDF
files.
PDFToText cannot be found: indexing
of text in PDF files will not be performed; you can obtain PDFToText at
http://www.foolabs.com/xpdf/download.html
PDFMiner cannot be found:
indexing of text locations in PDF files will not be performed; you can
obtain PDFMiner at
http://www.unixuser.org/~euske/python/pdfminer/index.html

Available
QuicktimeVR Provides services for processing of QuicktimeVR files
Didn't load because ffmpeg is not installed

Not available
Spin360 Accepts ZIP archives containing 360 spinnable images in SpinCar format (http://SpinCar.com)
Available
Video Provides ffmpeg-based video processing
Incoming video files will not be transcoded because ffmpeg is not installed.

Available
XMLDoc Accepts and processes XML-format documents
Available
BinaryFile Accepts any file unrecognized by other media plugins and stores it as-is
Not available

PDF Rendering Plugins




























Plugin

Info
Status
PhantomJS Renders HTML as PDF using PhantomJS
Not available
domPDF Renders HTML as PDF using domPDF
Available
wkhtmltopdf Renders HTML as PDF using wkhtmltopdf
Not available

Barcode generation


















Component

Info

Status
GD GD is a graphics processing library required for all barcode generation.
Available


Application Plugins























































Plugin

Info
Status
ULAN Imports artist records from ULAN
Available
WorldCat Imports bibliographic information from WorldCat
Available
duplicateMenu Adds a "duplicate" menu listing all recently duplicated items and providing an easy way to create additional duplicates.
Available
historyMenu Adds a "history" menu listing all recently edited items
Available
hspExport Enforces HSP-specific export rules
Available
ns11mmServices Implements Memex services for National September 11th Museum.
Available
prepopulate This plugin allows prepopulating field values based on display
templates. See http://docs.collectiveaccess.org/wiki/Prepopulate for
more info.

Available
relationshipGenerator Automatically assigns an object to a collection, based upon
rules you specify in the configuration file associated with the plugin

Available
travelogue Accepts submissions of media via email.
Available

Comments

  • This is the error after it times out
  • Have you solved this problem? I am wondering if the problem is due to the permissions of the media folder.
  • What is in the log for this error. Logs are in app/log and have names indicating the data of coverage.
  • The problem is likely that the path to the executable is not accessible by the www-data usr or the webclient usr.
    You need to add the path to the executable using open_basedir.
    You can set open_basedir in your Apache configuration file, php.ini, or in a .htaccess file.
    You need to add access via this one virtualhost so it is not opened up to all virtualhosts that use the server. You will need to understand the php.ini heirarchy for your instance. Creating a phpinfo.php for the web settings is the best way to see values.

    eg
    <?php
    phpinfo();
    ?>


    An example in the virtualhost is:
    &lt;VirtualHost 123.123.123.123:80&gt;
    &lt;Directory /htdocs/unsecured&gt;
    pdfminer_app open_basedir "/usr/local/bin"
    &lt;/Directory&gt;
    &lt;/VirtualHost&gt;<br><br><br><br>An example in the virtualhosts php.ini<br><br>
    open_basedir = "<code>/usr/local/bin"
    </code><br><br>An example in your .htaccess file is:<br><code>php_value open_basedir "<code><code>/usr/local/bin"


    One of these steps should likely fix your problem.
    I also installed python wand and <code>libmagickwand-dev prior as I thought the problem may be missing libraries based on the error message.<br> 
    sudo apt install python-wand libmagickwand-dev

    I suggest that for any plugins installed that are not showing up in your configuration check to do the following:

    (linux user)

    1. # find / -name <filenameHere>
    This will show you the paths.
    2. Amend the external_applications.conf with the path or path with binary name based on the notation
    eg
    # Path to binaryPDFMiner (http://www.unixuser.org/~euske/python/pdfm$
    pdfminer_app = /usr/local/bin/pdf2txt.py

    or

    # Path to directory containing ImageMagick binaries (http://www.imagemagick.org)
    imagemagick_path = /usr/bin


    3. Run phpinfo() to check open_basedir exists for the path to the executable. If not, add open_basedir based on one of the methods above.<br>I use the apache site.conf method.<br><br><br><br><br><br><br>
Sign In or Register to comment.