magnify.js RESOLVED

Discuss everything related to ApPHP DataForm. All versions. Any questions related to the ApPHP DataForm developing or using should be posted to this forum.

Moderator: alexandrleonenko

daviddelmonte
Master
Master
Posts: 159
Joined: Feb 23rd, '10, 15:06

magnify.js RESOLVED

Postby daviddelmonte » Jun 1st, '10, 04:59

I am getting this error "Cannot find file: ../dataform/scripts/magnify.js. Check if this file exists and you use a correct path!"

These are my settings:

define ("DATAFORM_DIR", ""); /* Ex.: "dataform/" */
define ("DATAGRID_DIR", "../datagrid/"); /* Ex.: "datagrid/" */
define ("PEAR_DIR", "../datagrid/pear/"); /* Ex.: "datagrid/pear/" */

//require_once(DATAGRID_DIR.'classes/datagrid.class.php');
require_once(DATAFORM_DIR.'classes/dataform.class.php');
require_once(PEAR_DIR.'PEAR.php');
require_once(PEAR_DIR.'DB.php');


Can you tell me where this script is called from. Perhaps that file is in the wrong place..
Last edited by daviddelmonte on Jun 7th, '10, 03:01, edited 1 time in total.

administrator
Site Admin
Site Admin
Posts: 6010
Joined: Jan 7th, '09, 23:18
Contact:

Re: magnify.js

Postby administrator » Jun 1st, '10, 08:11

Please redefine

define ("DATAFORM_DIR", "../"); /* Ex.: "dataform/" */
define ("DATAGRID_DIR", "datagrid/"); /* Ex.: "datagrid/" */
define ("PEAR_DIR", "datagrid/pear/"); /* Ex.: "datagrid/pear/" */
instead of


define ("DATAFORM_DIR", ""); /* Ex.: "dataform/" */
define ("DATAGRID_DIR", "../datagrid/"); /* Ex.: "datagrid/" */
define ("PEAR_DIR", "../datagrid/pear/"); /* Ex.: "datagrid/pear/" */

daviddelmonte
Master
Master
Posts: 159
Joined: Feb 23rd, '10, 15:06

Re: magnify.js

Postby daviddelmonte » Jun 1st, '10, 08:36

Hi, I do appreciate all your help..

When I changed as you suggest, I get this:

"Warning: require_once(../classes/dataform.class.php) [function.require-once]: failed to open stream: No such file or directory in /home1/beatric2/public_html/db/prints/addNegs2.php on line 190

Fatal error: require_once() [function.require]: Failed opening required '../classes/dataform.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/beatric2/public_html/db/prints/addNegs2.php on line 190"

I am wrapping the APPHP code in a Rapidweaver project, so that the relative positions of the scripts has to be understood and adjusted...

David

daviddelmonte
Master
Master
Posts: 159
Joined: Feb 23rd, '10, 15:06

Re: magnify.js RESOLVED

Postby daviddelmonte » Jun 1st, '10, 12:58

With the implementation of the files you sent me, this problem was resolved.. Many thanks..

This is amazing code you've built here..

David

010hnoor
Newbie
Newbie
Posts: 1
Joined: May 19th, '15, 04:44

Re: magnify.js RESOLVED

Postby 010hnoor » May 19th, '15, 04:59

"Warning: require_once(../classes/dataform.class.php) [function.require-once]: failed to open stream: No such file or directory in /home1/beatric2/public_html/db/prints/addNegs2.php on line 190


Return to “ApPHP DataForm”