Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

strange problem for mysql
by franfran on 2005/1/4 9:35:31

Hi,

I am trying to upgrade my MySQL to 4.1.7. The upgrade is smooth without a problem, I can see the new database having identical data with the old one, however, all blocks in XOOPS site are blank now(I can see the block title show, but no content).

I tried to debug the program and I found that the code use the following to assign content to the template:

$xoopsTpl->assign('somevar', $somecontent);


I then tried to dig deeper into the class/smarty/Smarty.class.php file. I find out that the $value passed to the function 'assign' is blank. I mean after the variable passed, the $value become blank inside the assign function.

I then try to do:
var_dump($somecontent);
before or after the xoopsTpl->assign code, it shows everything without problem. I am sure that the code can draw the data from database(all data is in $somecontent array). The problem occur only when using the xoopsTpl->assign function, the $value would become blank when passed to assign function.

I then switch back to my old DB, everything back to normal.

I wonder why? Since passing variable in PHP shouldn't have anything related to database version...
Any clue in here? Following is my config, thanks!

PHP 4.3.10
XOOPS 2.0.6

Before:
MYSQL 4.1.0, UTF8 as charaset

After:
MYSQL 4.1.7, UTF8 as charaset


P.S. I tried to empty the template_c folder, no luck

Who's Online

131 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits