error $j is not defined
Fri, 04/16/2010 - 19:13
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');
?>
Are examples working on your local installation?
Also, which browser are you seeing these issues in?
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/');
Note that none of these constants should have trailing slashes. This may cause confusion when building URLs, and break some links.
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.
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.
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.
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.
1) No I can't. My access to the server is limited.
2) /home/syntaxlab/onicah/includes/configuration/configuration.inc.php
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.