Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Previous Z Panel Version 25b10
10-15-2008, 07:01 AM
Post: #1
Previous Z Panel Version 25b10
Hi all:

While awaiting Rapid C's beta release, I have been playing around with the older Z panel version until such time. It seems to work well, except I am getting this error message at the top of the screen when I select some functions. There use to be an old forum for this version, but I would appreciate if anyone can tell me how to resolve this. Here is the error:
---------------------------------------------------------------------
Warning: Missing argument 2 for CheckModule(), called in C:\apachefriends\xampp\htdocs9\controlpanel\v25b10\zpanel.php on line 20 and defined in C:\apachefriends\xampp\htdocs9\controlpanel\v25b10\includes\functions.php on line 65
--------------------------------------------------------------

Also, this is what I find on line 65 of functions.php:

--------------------------------------------------------------
function CheckModule($page, $root) {
$page = trim($page);

if (file_exists($root.'/modules/'.$page)) {
return $page;
}else{
return '';
}
}

?>
-----------------------------------------------------------
1. How can I remedy this "missing argument" so that this error goes away?
2. Does the old forum exist anywhere online?

Thanks in advance for your assistance.
Find all posts by this user
Quote this message in a reply
10-15-2008, 07:12 AM
Post: #2
RE: Previous Z Panel Version 25b10
This site is for RapidCP. For tech support for ZPanel, go to http://thezpanel.co.uk/support
Find all posts by this user
Quote this message in a reply
10-15-2008, 10:00 AM
Post: #3
RE: Previous Z Panel Version 25b10
http://www.thezpanel.co.uk/forums/showth...ckModule()

----copy----of----message-----
Rick
The ZPanel Moderator / Support Team

Posts: 16
Joined: Jul 2008
Reputation: 0
( Missing argument 2 ) bug fixed 2 methods
**** This Bug fix is for Linux ****

In the new beta version you may well come accross this error, there are two methods of fixing this one i have tried and i am using, the second i havent tried,

************************* ERROR ***********************
Warning: Missing argument 2 for CheckModule(), called in /var/www/html/panel/zpanel.php on line 20 and defined in /var/www/html/panel/includes/functions.php on line 65
******************************************************

Fix one

************************* FIX 1 ************************
Find this line in zpanel.php
$query_Modules = sprintf("SELECT * FROM modules WHERE name = '".CheckModule($_GET['page'])."'");

and replace it with this

$query_Modules = sprintf("SELECT * FROM modules WHERE name = '".trim($_GET['page'])."'");
*****************************************************

Fix 2

************************* FIX 2 ************************
Find this line in zpanel.php
$query_Modules = sprintf("SELECT * FROM modules WHERE name = '".CheckModule($_GET['page'])."'");

and replace it with this

$query_Modules = sprintf("SELECT * FROM modules WHERE name = '".CheckModule($_GET['page'],$zpaneldirectory)."'");
******************************************************


Rick
Find all posts by this user
Quote this message in a reply
10-17-2008, 12:56 AM
Post: #4
RE: Previous Z Panel Version 25b10
Thanks for your response Rick. Very much appreciated.
Find all posts by this user
Quote this message in a reply
05-27-2009, 07:26 AM
Post: #5
RE: Previous Z Panel Version 25b10
That error has now been completely fixed in the zPanel release, im Rick that works on zPanel for linux but when they decided to go strictly to windows i came over here to develope RapidCP wit hthe Dev team here..
Find all posts by this user
Quote this message in a reply
11-25-2009, 05:42 PM
Post: #6
RE: Previous Z Panel Version 25b10
(10-17-2008 12:56 AM)rich Wrote:  Thanks for your response Rick. Very much appreciated.

yah it's really appreciated .. Nice work done by him.. Keep it up man..

vitamines
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: