PEAK XOOPS - Error after upload in index page of module in englishin japanese

Error after upload in index page of module

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum

report Problem fixed

msg# 1.3
Previous post - Next post | Parent - No child | Posted on 2005/11/9 3:36
rebenta  Private 1st Class   Posts: 11
IŽ´ve found one way to fix this problem.
In the index page of module (myalbum/index.php), search this code:

Quote:
// Assign Latest Photos
$prs = $xoopsDB->query( "SELECT l.lid, l.cid, l.title, l.ext, l.res_x, l.res_y, l.status, l.date, l.hits, l.rating, l.votes, l.comments, l.submitter, t.description,c.title AS cat_title FROM $table_photos l LEFT JOIN $table_text t ON l.lid=t.lid LEFT JOIN $table_cat c ON l.cid=c.cid WHERE l.status>0 ORDER BY date DESC" , $num , $pos ) ;
while( $fetched_result_array = $xoopsDB->fetchArray( $prs ) ) {
$xoopsTpl->append_by_ref( 'photos' , myalbum_get_array_for_photo_assign( $fetched_result_array , true ) ) ;
}

Where you read: $xoopsTpl->append_by_ref( 'photos' , myalbum_get_array_for_photo_assign( $fetched_result_array , true ) ) ;

You must change the funtion append_by_ref to append

The final correction must be:
Quote:
// Assign Latest Photos
$prs = $xoopsDB->query( "SELECT l.lid, l.cid, l.title, l.ext, l.res_x, l.res_y, l.status, l.date, l.hits, l.rating, l.votes, l.comments, l.submitter, t.description,c.title AS cat_title FROM $table_photos l LEFT JOIN $table_text t ON l.lid=t.lid LEFT JOIN $table_cat c ON l.cid=c.cid WHERE l.status>0 ORDER BY date DESC" , $num , $pos ) ;
while( $fetched_result_array = $xoopsDB->fetchArray( $prs ) ) {
$xoopsTpl->append( 'photos' , myalbum_get_array_for_photo_assign( $fetched_result_array , true ) ) ;
}

Mr. Gijoe, please, check this code to adpat it to Php 5.0.5
Thank you!
Votes:1 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/11/2 12:14
dockwin  Private   Posts: 3
I am having the same problem with 2.86.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/11/2 1:26
rebenta  Private 1st Class   Posts: 11
When i do changes on index page to work in php 5.0.5, the index page repeat the last picture who have sent a lot of times, without show the other pictues.
See in the url: http://www.rebenta.com.br/modules/myalbum2/
How can i fix these error?
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/10/28 0:22
rebenta  Private 1st Class   Posts: 11
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2005/10/14 3:47
rebenta  Private 1st Class   Posts: 11
iŽ´ve installed two cloned myalbuns in my Xoops: myalbum and myalbum2. After install they work fine.
After i add pictures, the xoops show the follow error (and donŽ´t show the index page of module):
Quote:
Fatal error: Only variables can be passed by reference in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum/index.php on line 50
Notice [PHP]: Undefined variable: myalbum_assign_globals in file modules/myalbum/index.php line 17

And in the index page of xoops cms, the php debug shows:
Quote:
Warning: main() [function.main]: open_basedir restriction in effect. File(/home/servers/php/lib/php/include/get_perms.php) is not within the allowed path(s): (/home/users/r/rebenta) in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum/xoops_version.php on line 112

Warning: main(include/get_perms.php) [function.main]: failed to open stream: Operation not permitted in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum/xoops_version.php on line 112

Warning: main() [function.include]: Failed opening 'include/get_perms.php' for inclusion (include_path='.:/home/servers/php/lib/php') in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum/xoops_version.php on line 112

Notice: Undefined variable: global_perms in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum/xoops_version.php on line 113

Notice: Undefined variable: global_perms in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum/xoops_version.php on line 121

Warning: main() [function.main]: open_basedir restriction in effect. File(/home/servers/php/lib/php/include/get_perms.php) is not within the allowed path(s): (/home/users/r/rebenta) in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum2/xoops_version.php on line 112

Warning: main(include/get_perms.php) [function.main]: failed to open stream: Operation not permitted in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum2/xoops_version.php on line 112

Warning: main() [function.include]: Failed opening 'include/get_perms.php' for inclusion (include_path='.:/home/servers/php/lib/php') in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum2/xoops_version.php on line 112

Notice: Undefined variable: global_perms in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum2/xoops_version.php on line 113

Notice: Undefined variable: global_perms in /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum2/xoops_version.php on line 1

How can i make myalbum work corretly? And how can i make it show module page index again?
My phpadmin shows Quote:
The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
Can be the problem?
Votes:2 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!