PHP ERP System

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
mbroz
Forum Newbie
Posts: 2
Joined: Sun May 10, 2009 4:10 am

PHP ERP System

Post by mbroz »

Hi all, First Post.

Experienced IT guy here but new to PHP and besides a bit of HTML, fairly new to programming in general. Hopefully I'm posting in the right place.

I installed EMMS 2.0, a PHP based ERP system from sourceforge.net. I installed the XAMPP package (Apache, Pear, mysql). I followed the instructions to set up the package.

But I just get a blank page when I go to the home page. I debugged the script using a packaged I downloaded and what I discovered was the paths to certain php files did not exist. For example in a file called webpage.php it looks for files called pear.php and db.php that do not exist in the default installation of EMMS 2. I found these in the XAMPP folder and what I discovered is if I copied the entire contents of the /xampp/php/pear all the files were in the right place.

However, I kept running into difficulty as the debugging continued. For example this code completely baffled me.
require_once 'HTML/Template/ITX.php';
require_once 'HTML/QuickForm.php';
require_once 'HTML/QuickForm/Renderer/ITStatic.php';
require_once 'class/TTFButton.php';

Again there was no reference to any of these files. I was able to download ITX.php and Quickform.php but I am not sure if I'm doing it right. It is now looking for object.php within the quickform.php file. I can't find that to download so I'm fairly stuck.
I'm sure this is something simple. I asume there is somewhere I might be able to download the entire HTML folder. Any help would be appreciated.
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: PHP ERP System

Post by it2051229 »

it's my first time to hear of ERP system... but I know that most Systems such as ERP and the like have there own forum for technical difficulties for people like you.. It's part of software engineering that when creating and distributing systems, it should have technical support.. so try googling it, or look for the ERP website.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: PHP ERP System

Post by Eran »

You should turn on errors display to debug the error that is occurring. It is a PHP configuration directive called display_errors and it should be set to On (don't forget to restart your apache webserver after you update the configuration).
mbroz
Forum Newbie
Posts: 2
Joined: Sun May 10, 2009 4:10 am

Re: PHP ERP System

Post by mbroz »

Thanks guys and gals, the logging is on. I assume the errors are returned in the error.log file. If so, it isn't bringing up any errors. The debugging finds the problems. I'll try the forum on the site also.
Yossarian
Forum Contributor
Posts: 101
Joined: Fri Jun 30, 2006 4:43 am

Re: PHP ERP System

Post by Yossarian »

Code: Select all

require_once 'HTML/Template/ITX.php';
require_once 'HTML/QuickForm.php';
require_once 'HTML/QuickForm/Renderer/ITStatic.php';
require_once 'class/TTFButton.php';
The first 3 are symptoms that the path PEAR is not inside your include_path, depending on your server setup you can set this in the ini file or maybe in .htaccess files.

The last one shows that this ERP package expects you to install a folder called class (and perhaps others) inside that previously mentioned value(s) : include_path.

Understanding the simple ini settings' hierarchy and esp include_path is pretty central to getting anything done using external libraries, so have a good read of the php.ini file where it mentions include_path and then carefully the software documentation/usernotes/docblock comments for clues.
Post Reply