11
Hasanibrahim
Re: Advice a Counter please..

Thanks for all valued answers. I could install logcounterX successfully. It's now working good. Thanks

12
richiemsn
Re: Advice a Counter please..
  • 2011/4/13 7:13

  • richiemsn

  • Just popping in

  • Posts: 6

  • Since: 2010/1/7 2


I have error in these 3 lines in the Administration module when selected block administration


Advertencia: Class 'XoopsBlockInstanceHandler' is deprecated thus the method 'getObjects' is not executed! en el archivo /kernel/blockinstance.php y línea 112

Advertencia: array_keys() [function.array-keys]: The first argument should be an array en el archivo /modules/logcounterx/admin/myblocksadmin2.php y línea 137

Advertencia: Invalid argument supplied for foreach() en el archivo /modules/logcounterx/admin/myblocksadmin2.php y línea 137

Linea 112*****


function __call($name, $args)
{
trigger_error("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? "" : " thus the method '{$name}' is not executed") . "!", E_USER_WARNING); *****
return null;
}

Linea 137*****

$class = 'even' ;
$block_configs = get_block_configs() ;
foreach( array_keys( $instances ) as $i ) { *****
$sseln = $ssel0 = $ssel1 = $ssel2 = $ssel3 = $ssel4 = "";
$scoln = $scol0 = $scol1 = $scol2 = $scol3 = $scol4 = "#FFFFFF";

$weight = $instances[$i]->getVar("weight") ;
$title = $instances[$i]->getVar("title") ;
$bcachetime = $instances[$i]->getVar("bcachetime") ;
$bid = $instances[$i]->getVar("bid") ;
$name = $myts->makeTboxData4Edit( $block_arr[$bid]['name'] ) ;

$visiblein = $instances[$i]->getVisibleIn();


In quote:

error 1146


0.000110 - SELECT i.instanceid,i.title FROM block_instance i LEFT JOIN newblocks b ON i.bid=b.bid WHERE b.mid='128'
Error number: 1146
Error message: Table 'gestores.xeee_block_instance' doesn't exist

13
zyspec
Re: Advice a Counter please..
  • 2011/4/13 12:09

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Richiemsn,

This is because the module is trying to apply some XOOPS 2.2 functions which have been deprecated. To prevent this just change line 11 of ./admin/myblocksadmin.php from:
[size=xx-small]
if( substrXOOPS_VERSION ) > 2.0 ) {
[/size]to
[size=xx-small]
if ( ( substrXOOPS_VERSION ) > 2.0 ) && ( substrXOOPS_VERSION ) < 2.3 ) ) {
[/size]

Login

Who's Online

423 user(s) are online (330 user(s) are browsing Support Forums)


Members: 0


Guests: 423


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits