16 Sep 2008
Hello,
i am new to Zoop. I was following the Zoop beginners quide, investigating forms2 example, and i got an error: Fatal error: Class 'form2' not found in D:\xampp\htdocs\zoop_app\zone_default.php on line 393
I've checked my include.php file and line $zoop->addComponent('forms'); is uncommented.
I can't found out where the problem is.
Could anybody help me?
Include Error
From the path you posted it looks like you are running XAMPP for Windows. There is an issue with Windows includes and paths which might be causing the error. Please see the post below for more information. If you do not understand the solution please feel free to post back here and I will try and elaborate on the solution.
http://www.zoopframework.com/forum/bugs/problem-with-database
We found the problem he was having was in the include_path. On Windows, the path separator for the include path is ;, on Unix, it is :. Make sure that your include_path has no colons, but only semicolons when using zoop in windows. In particular, the zoop_skeleton had an error with a trailing : in the config.php line that adds zoop/lib to the include_path for windows.
The error remains
I've corrected the include line in config.php file, no it looks like this:
ini_set('include_path',ini_get('include_path').';'. zoop_dir . '/lib/pear;');
but I'm still getting the same error.
The path still looks like unix
The path you posted looks like a unix file path still for your Pear folder. You need to change these to match your windows files paths and you are missing a semi colon, please see below. What does your current zoop_dir get set to in the config.php file in D:\xampp\htdocs\zoop_app?
I also had this problem...my
I also had this problem...my fix was try adding this to you includes.php
require_once('zoop/forms/forms2.php');
or whatever the path is. if you get the tutorial to work could you post the code?
or some demo on how you made it work..
I am having some troubles with making it run...
Windows?
Are you also running a Windows based server? The require_once line you posted will only work if you are running a MAC or Linux file system and the ZoopFrame work folder you listed in in the same directory as your application folder.
Please note that on Linux/Unix or MAC a drive letter like C:\ or D:\ will not exist since everything is mounted off the root / folder. Also when working with Windows based paths \ separates folders and in MAC and Unix / separates folders.
I am using it on xammp. but
I am using it on xammp. but I imagine the site will end up being used on a linux server....
did the thread starter ever solved the problem...was my fix wrong?
Coding on Windows Then Moving To Linux
In the past I have had a lot of trouble trying to move all of my PHP work from a Windows machine to a Nix because of the path differences. With Zoop you could write a script in the config.php file to change all of your paths depending on the OS that is detected. The original poster has never written back.
moduli fotovoltaici
OH! Great post..I was so impressed I've found this kind of blog..Thanks.
moduli fotovoltaici
lampioni fotovoltaici