error $j is not defined

Login or register to post comments
9 replies [Last post]
Offline
Joined: 02/21/2010

hi,

i got this error in the new version 2.0

$j is not defined

<?php
   
require_once('../qcubed.inc.php');

   
// Define the Qform with all our Qcontrols
   
class Example3 extends QForm {
       
// Local declarations of our Qcontrols
       

        // Initialize our Controls during the Form Creation process
       
protected function Form_Create() {
           
        }
    }

   
// Run the Form we have defined
   
Example3::Run('Example3');
?>

alex94040's picture
Offline
Joined: 11/06/2008

Are examples working on your local installation?

Also, which browser are you seeing these issues in?

Offline
Joined: 02/21/2010

was something wrong in my configuration . its working now

define ('__DOCROOT__', 'd:/xampp/htdocs/');
define ('__VIRTUAL_DIRECTORY__', '');
define ('__SUBDIRECTORY__', 'my/');

change to

define ('__DOCROOT__', 'd:/xampp/htdocs/');
define ('__VIRTUAL_DIRECTORY__', '');
define ('__SUBDIRECTORY__', '/my/');

Offline
Joined: 03/31/2008

Note that none of these constants should have trailing slashes. This may cause confusion when building URLs, and break some links.

joeresu's picture
Offline
Joined: 10/25/2010

I also have an experience with $j is not defined problem

When I tried installing qcodo in a subdirectory it went fine.
but if i wish to install it without a subdirectory it creates $j is not defined problem

Works fine in my localhost.

alex94040's picture
Offline
Joined: 11/06/2008

I'm assuming you're referring to QCubed, not qcodo.

Can you please post the docroot / subdirectory constants from your configuration.inc.php file that cause errors? And let us know the full path of your configuration.inc.php file on your file system? This will help us troubleshoot.

joeresu's picture
Offline
Joined: 10/25/2010

this one generates error
define ('__DOCROOT__', '/home/syntaxlab/onicah');
define ('__VIRTUAL_DIRECTORY__', '');
define ('__SUBDIRECTORY__', '');

this one does not
define ('__DOCROOT__', '/home/syntaxlab/onicah');
define ('__VIRTUAL_DIRECTORY__', '');
define ('__SUBDIRECTORY__', '/2.0.2');

given that i tried running both the site under a subdirectory and without.
strange because it works properly in localhost

--
i compared the source code through firefox view source both my local and the site... they are the same.

alex94040's picture
Offline
Joined: 11/06/2008

Two follow-up questions:
1) What is your virtual host configuration on apache? Can you include the actual snippet from httpd.conf?

2) What is the full path to your configuration.inc.php file? For example, one of my machines has it as /var/www/qcubed/includes/configuration.inc.php.

joeresu's picture
Offline
Joined: 10/25/2010

1) No I can't. My access to the server is limited.
2) /home/syntaxlab/onicah/includes/configuration/configuration.inc.php

joeresu's picture
Offline
Joined: 10/25/2010

I've created another subdomain and the error was gone.

maybe the DNS of my ISP wasn't updated for so long when I tried it.

I really find this strange. Anyway, problem solved.