Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th May 2008, 21:17
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Question Bugs in the code of the ISPConfig software

Hi guys,

I have some problem with ISPConfig software.
  • If I try to open the login.php I cannot see the image logo.
  • Inside the left frameset of the phpmyadmin -> phpNotice: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush. in /home/admispconfig/ispconfig/web/phpmyadmin/libraries/ob.lib.php on line 116
  • The requested URL /<br /><b>Notice</b>: Undefined index: reseller in <b>/home/admispconfig/ispconfig/web/login.php</b> on line <b>60</b><br />design/default/images/login_logo.png was not found on this server.
  • after the login page: Notice: Undefined variable: sessionispconfig in /home/admispconfig/ispconfig/web/login/trylogin.php on line 43 Warning: Cannot modify header information - headers already sent by (output started at /home/admispconfig/ispconfig/web/login/trylogin.php:43) in /home/admispconfig/ispconfig/web/login/trylogin.php on line 55

Other errors:
Code:
Notice: Undefined index: sessionispconfig in /home/admispconfig/ispconfig/lib/classes/ispconfig_auth.lib.php on line 79

Notice: Use of undefined constant icon - assumed 'icon' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 36

Notice: Use of undefined constant title - assumed 'title' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 37

Notice: Use of undefined constant link - assumed 'link' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 38

Notice: Use of undefined constant perms - assumed 'perms' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 39

Notice: Use of undefined constant icon - assumed 'icon' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 42

Notice: Use of undefined constant title - assumed 'title' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 43

Notice: Use of undefined constant link - assumed 'link' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 44

Notice: Use of undefined constant perms - assumed 'perms' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 45

Notice: Use of undefined constant icon - assumed 'icon' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 48

Notice: Use of undefined constant title - assumed 'title' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 49

Notice: Use of undefined constant link - assumed 'link' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 50

Notice: Use of undefined constant perms - assumed 'perms' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 51

Notice: Use of undefined constant icon - assumed 'icon' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 53

Notice: Use of undefined constant title - assumed 'title' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 54

Notice: Use of undefined constant link - assumed 'link' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 55

Notice: Use of undefined constant perms - assumed 'perms' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 56

Notice: Use of undefined constant icon - assumed 'icon' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 58

Notice: Use of undefined constant title - assumed 'title' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 59

Notice: Use of undefined constant link - assumed 'link' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 60

Notice: Use of undefined constant perms - assumed 'perms' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 61

Notice: Use of undefined constant icon - assumed 'icon' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 63

Notice: Use of undefined constant title - assumed 'title' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 64

Notice: Use of undefined constant link - assumed 'link' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 65

Notice: Use of undefined constant perms - assumed 'perms' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 66

Notice: Use of undefined constant deck - assumed 'deck' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 96

Notice: Use of undefined constant shortText - assumed 'shortText' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 97

Notice: Use of undefined constant longText - assumed 'longText' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 98

Notice: Use of undefined constant imageField - assumed 'imageField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 99

Notice: Use of undefined constant linkField - assumed 'linkField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 100

Notice: Use of undefined constant doubleField - assumed 'doubleField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 101

Notice: Use of undefined constant integerField - assumed 'integerField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 102

Notice: Use of undefined constant dateField - assumed 'dateField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 103

Notice: Use of undefined constant fileField - assumed 'fileField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 104

Notice: Use of undefined constant attachField - assumed 'attachField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 105

Notice: Use of undefined constant descField - assumed 'descField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 106

Notice: Use of undefined constant seperatorField - assumed 'seperatorField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 107

Notice: Use of undefined constant checkboxField - assumed 'checkboxField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 108

Notice: Use of undefined constant optionField - assumed 'optionField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 109

Notice: Use of undefined constant pluginField - assumed 'pluginField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 110

Notice: Use of undefined constant messageField - assumed 'messageField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 111

Notice: Use of undefined constant workflowField - assumed 'workflowField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 112

Notice: Use of undefined constant terminField - assumed 'terminField' in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 113

Notice: Undefined index: template_root in /home/admispconfig/ispconfig/web/isp_manager/lib/module.inc.php on line 120

Notice: Undefined property: go_api::$debug in /home/admispconfig/ispconfig/lib/session.inc.php on line 248

Notice: Undefined index: web_id in /home/admispconfig/ispconfig/web/index.php on line 41

Notice: Undefined variable: getstring in /home/admispconfig/ispconfig/web/index.php on line 45
What is happening?
Thanks

Last edited by vaio1; 17th May 2008 at 21:19.
Reply With Quote
Sponsored Links
  #2  
Old 17th May 2008, 23:02
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

These are no bugs, you just set the error warning level in PHP wrong. Please set it to report just errors and no notices.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th May 2008, 10:52
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Arrow

Hi Till,

the /root/ispconfig/php/php.ini file has been set in this way:
Code:
error_reporting  =  E_ALL
I cannot change the main settings of the error_reporting because my projects needs it. However, is there a way to set it only for the ISPConfig project?

Furthermore, why ISPConfig has not every variables checked?
For instance, I can see in the code of the login.php file that the line #32 is not written correctly.

PHP Code:
$err intval($_GET["err"]); 
instead of
PHP Code:
$err = (!empty($_GET["err"]) && is_numeric($_GET["err"])) ? intval($_GET["err"]) : 0
I would like to help you as web developer but I have tried some difficulty to update my online version to the last svn version of ISPConfig.

thanks
Reply With Quote
  #4  
Old 18th May 2008, 10:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by mturillo
Hi Till,

the /root/ispconfig/php/php.ini file has been set in this way:
Code:
error_reporting  =  E_ALL
I cannot change the main settings of the error_reporting because my projects needs it. However, is there a way to set it only for the ISPConfig project?
That php.ini is only for ISPConfig and does not effect the web sites that run on the main Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 18th May 2008, 11:01
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Exclamation

Hi Falko,

the problem persists with: error_reporting = E_ALL & ~E_NOTICE

Notice: Undefined variable: sessionispconfig in /home/admispconfig/ispconfig/web/login/trylogin.php on line 43

Last edited by vaio1; 18th May 2008 at 13:50.
Reply With Quote
  #6  
Old 18th May 2008, 16:37
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Unhappy

Hi guys,

the ISPConfig has no control for every variable:

These are only few error in the index.php page.
Code:
Notice: Undefined index: tree_id in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 35

Notice: Undefined index: gid in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 38

Notice: Undefined index: userid in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 39

Notice: Undefined index: form in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 41

Notice: Use of undefined constant main - assumed 'main' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 398

Notice: Use of undefined constant table - assumed 'table' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 399

Notice: Use of undefined constant stylesheet - assumed 'stylesheet' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 400

Notice: Use of undefined constant TITLE - assumed 'TITLE' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 406

Notice: Use of undefined constant SESSION - assumed 'SESSION' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 407

Notice: Use of undefined constant BACKGROUND_GIF - assumed 'BACKGROUND_GIF' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 408

Notice: Use of undefined constant COPYRIGHT - assumed 'COPYRIGHT' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 409

Notice: Use of undefined constant FGCOLOR - assumed 'FGCOLOR' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 410

Notice: Use of undefined constant TABLE_H_COLOR - assumed 'TABLE_H_COLOR' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 411

Notice: Use of undefined constant WINDOWTITLE - assumed 'WINDOWTITLE' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 412

Notice: Use of undefined constant SITENAME - assumed 'SITENAME' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 413

Notice: Use of undefined constant DESIGNPATH - assumed 'DESIGNPATH' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 414

Notice: Use of undefined constant CHARSET - assumed 'CHARSET' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 415

Notice: Use of undefined constant SERVERURL - assumed 'SERVERURL' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 416

Notice: Use of undefined constant NEXT_TREE_ID - assumed 'NEXT_TREE_ID' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 417

Notice: Undefined variable: next_tree_id in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 417

Notice: Use of undefined constant CALLER_TREE_ID - assumed 'CALLER_TREE_ID' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 418

Notice: Undefined variable: caller_tree_id in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 418

Notice: Use of undefined constant S - assumed 'S' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 419

Notice: Use of undefined constant TARGET - assumed 'TARGET' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 420

Notice: Undefined variable: form_target in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 421

Notice: Undefined variable: deck_id in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 485

Notice: Use of undefined constant DOCTYPE_TITLE - assumed 'DOCTYPE_TITLE' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 496

Notice: Use of undefined constant DOCTYPE_DESCRIPTION - assumed 'DOCTYPE_DESCRIPTION' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 497

Notice: Use of undefined constant WINDOWTITLE - assumed 'WINDOWTITLE' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 498

Notice: Use of undefined constant GROUP_ID - assumed 'GROUP_ID' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 499

Notice: Use of undefined constant TREE_ID - assumed 'TREE_ID' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 500

Notice: Use of undefined constant BOXSIZE - assumed 'BOXSIZE' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 501

Notice: Use of undefined constant DECK_ID - assumed 'DECK_ID' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 502

Notice: Use of undefined constant DOC_ID - assumed 'DOC_ID' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 503

Notice: Use of undefined constant DOCTYPE_ID - assumed 'DOCTYPE_ID' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 504

Notice: Use of undefined constant NEXT_DOCTYPE_ID - assumed 'NEXT_DOCTYPE_ID' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 505

Notice: Undefined variable: next_doctype_id in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 505

Notice: Use of undefined constant WYSIWYG_LIB - assumed 'WYSIWYG_LIB' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 506

Notice: Undefined variable: checkform in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 651

Notice: Undefined variable: deck1 in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 669

Notice: Undefined variable: deck2 in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 673

Notice: Undefined property: pluginField::$value in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 698

Notice: Undefined variable: html_out in /home/admispconfig/ispconfig/lib/plugins/check_uptime.plugin.php on line 52

Notice: Undefined variable: buffer in /home/admispconfig/ispconfig/lib/plugins/check_uptime.plugin.php on line 56

Notice: Undefined variable: hlp in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 719

Notice: Undefined property: pluginField::$value in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 698

Notice: Undefined variable: html_out in /home/admispconfig/ispconfig/lib/plugins/check_disk.plugin.php on line 51

Notice: Undefined variable: buffer in /home/admispconfig/ispconfig/lib/plugins/check_disk.plugin.php on line 55

Notice: Undefined variable: hlp in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 719

Notice: Use of undefined constant GROUPS - assumed 'GROUPS' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 770

Notice: Undefined variable: groups in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 770

Notice: Use of undefined constant GID_OLD - assumed 'GID_OLD' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 771

Notice: Undefined variable: gid_old in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 771

Notice: Use of undefined constant ELEMENTS - assumed 'ELEMENTS' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 772

Notice: Use of undefined constant DECKS - assumed 'DECKS' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 773

Notice: Use of undefined constant BUTTONS - assumed 'BUTTONS' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 774

Notice: Use of undefined constant CHECKFORM - assumed 'CHECKFORM' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 775

Notice: Use of undefined constant STYLESHEET - assumed 'STYLESHEET' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 777

Notice: Use of undefined constant stylesheet - assumed 'stylesheet' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 777

Notice: Use of undefined constant MAIN - assumed 'MAIN' in /home/admispconfig/ispconfig/web/multidoc/edit/edit.php on line 778
I have tried to debug it but it's full of unchecked variables.
Which is the php.ini file called by the apache?

Regards
Reply With Quote
  #7  
Old 18th May 2008, 16:44
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Set the error reporting in the file /root/ispconfig/php/php.ini to report only errors, no notices or warnings and then restart ispconfig.

You should never change this php.ini, it is used only by ISPConfig and it is set to the right settings by default, so there is no need to touch this file.

The php programming language changed over the years, some of the ispconfig 2 code is even from php3 so it is normal that it may trow some notices, this is normal and totaly uncritical.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
mturillo (18th May 2008)
  #8  
Old 18th May 2008, 16:53
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Wink

Hi Till,

thank you for your assistance. I have tried to debug it but I need to understand how can I update my version of ISPConfig and start to help the project with my sparetime.

Thanks
Reply With Quote
  #9  
Old 19th May 2008, 17:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by mturillo
I need to understand how can I update my version of ISPConfig
Download the latest ISPConfig version, uncompress it, and then run
Code:
cd install_ispconfig
./setup
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 20th May 2008, 10:32
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
 
Default

I have an existing version installed in my server.
Which is the newer version? the 2 or the 3?
I don't want stop my server services.

thanks
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Working through the ISPConfig source code catdude General 1 25th August 2007 09:38
any bIlling software that is compatibile with ISPconfig alexnz General 1 14th August 2007 10:49
I love ISPConfig rafael-ec General 0 9th August 2007 19:09
ISPConfig 2.3.2-dev released till General 9 4th June 2007 11:46
Recreating ISPConfig database retran Installation/Configuration 2 16th April 2006 00:22


All times are GMT +2. The time now is 20:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.