Postponed (maintainer needs more info)
Project:
Processing.js
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
4 Mar 2011 at 09:29 UTC
Updated:
21 Jun 2015 at 14:31 UTC
Jump to comment: Most recent
Comments
Comment #1
mradcliffePlease check where you placed the processing-1.1.0.min.js file within your web server's web root path.
Comment #2
Anonymous (not verified) commentedMy location of processing-1.1.0.min.js is:
sites/all/libraries/processing.js/processing-1.1.0.min.js
Thanks for your reply.
I have the following message cannot save configuration:
But I can save location like this:
processing-1.1.0.min.js
or everything else, even:
black-sheep
so it looks like adress verification issue.
Comment #3
mradcliffeThe module uses Drupal's standard file_check_location() function to make sure the file exists in the path that you specify. If it's throwing the error, then PHP cannot find the file in the directory specified.
I also notice that your error says "processing-1.1.0.js", but you say you are using "processing-1.1.0.min.js". Make sure that you have entered the relative path to "processing-1.1.0.min.js", not "processing-1.1.0.js" if that is in fact the processing library you're using.
Comment #4
Anonymous (not verified) commentedHi Matt
I had all kinds of processing.js in that directory so it was just my misspelling.
Thanks anyway.
I tried to figure out why file_check_location equals zero.
I looked inside file_check_location to see what's wrong.
I had symbolic link in my drupal installation directory - sites pointing to folder up
I that case the realpath of processing.js was
mysite.com/sites/all/libraries/processing.js/processing-VERSION.js
and drupal path was
mysite.com/public_html
Since file_check_location tries to match this two paths
if ($directory && strpos($source, $directory) !== 0)) // the $directory is realpath(''), and $source is realpath of processing.jsthe function file_check_location returns 0.
I've moved my sites folder into drupal folder so realpath of processing.js became:
mysite.com/public_html/sites/all/libraries/processing.js/processing-VERSION.js
and all start working.
So this issue may be closed.
I only think about the symbolic link I used for sites. I never had any problem with sites til then.
Comment #5
mradcliffeI actually ran into the issue you have with file_check_location() with imagecache. Drupal has a hard time with aliases because it uses the realpath() function or drupal_realpath() function.
Comment #6
niteshade commentedI'm having this problem as well.
getting this error: "Could not verify the location of sites/all/libraries/processing.js/processing-1.2.3.js"
even though, right below, it says "This will usually be sites/all/libraries/processing.js/processing-VERSION.js"
is this a bug, or am I doing something wrong? Is there an established workaround?
thanks
Comment #7
mradcliffeI guess the error message is confusing. It is just spitting the path that you entered in the form back out at you when Drupal says the file doesn't exist at that path. Can you double check the file name and try again?