1
TaCHAT
xcGallery foto rating
  • 2006/9/29 6:54

  • TaCHAT

  • Just popping in

  • Posts: 13

  • Since: 2006/1/15


Does picture rating and ranking (number of times viewed) work for anyone? It didn't work for me in 1.1 and doesn't in 2.2 either.

I occasionally get a blank white page after clicking on a link, not sure what causes this either.

XOOPS 2.0.13.2
linux server
Apache 1.3.37 (Unix)
MySQL 5.0.24-standard
PHP 5.1.6

2
wcrwcr
Re: xcGallery foto rating
  • 2006/9/29 10:10

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi

I never face that problem in 1.1 version.
Maybe worse a look at your php info, looking for safe_mode and register_globals.

Also try to turn on your php debug and look for some errors.

3
mcleines
Re: xcGallery foto rating
  • 2006/10/2 7:27

  • mcleines

  • Not too shy to talk

  • Posts: 108

  • Since: 2004/10/7


Hi Tachat!

Try the following:

Edit row 163 in file xcgal/ratepic.php

$HTTP_SERVER_VARS

to

$_SERVER

4
TaCHAT
Re: xcGallery foto rating
  • 2006/10/2 18:16

  • TaCHAT

  • Just popping in

  • Posts: 13

  • Since: 2006/1/15


mcleines

unfortunately nothing changes

5
mcleines
Re: xcGallery foto rating
  • 2006/10/2 19:10

  • mcleines

  • Not too shy to talk

  • Posts: 108

  • Since: 2004/10/7


What does the php-debug say. On a white site there should be errors displayed.

6
TaCHAT
Re: xcGallery foto rating
  • 2006/10/3 8:25

  • TaCHAT

  • Just popping in

  • Posts: 13

  • Since: 2006/1/15


Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 491
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 491
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 491
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 491
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 491
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 491
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 491
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 491
Notice [PHP]: Only variable references should be returned by reference in file class/module.textsanitizer.php line 259
Notice [PHP]: Only variable references should be returned by reference in file class/module.textsanitizer.php line 259
Warning [PHP]: Cannot modify header information - headers already sent by (output started at /home/vigent/public_html/podryg/mainfile.php:100) in file modules/xcgal/ratepic.php line 49

7
Peekay
Re: xcGallery foto rating
  • 2006/10/3 9:30

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Rating works for me on 2.0.13.2 with MySQL 3.32 and PHP 4.3.7. Going to check whether the view count works now. I do get one undefined variable notice:
Notice [PHP]: Undefined variableresult in file c:inetpubwwwrootxoopsmodulesxcgalincludefunctions.inc.php line 534

and one warning:
Warning [PHP]: mysql_free_result(): supplied argument is not a valid MySQL result resource in file c:inetpubwwwrootxoopsclassdatabasemysqldatabase.php line 187

This module is great, but quite old. I would be surprised if it works with PHP 5 or MySQL 5.
A thread is for life. Not just for Christmas.

8
Peekay
Re: xcGallery foto rating
  • 2006/10/3 10:02

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


To fix the undefined variable

include\functions.inc.php
Line 517 add:
// pk define vars for globals off
$result = !isset($_REQUEST['result'])? NULL $_REQUEST['result'];
A thread is for life. Not just for Christmas.

9
Peekay
Re: xcGallery foto rating
  • 2006/10/3 11:07

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Well I checked out several sites using xcGallery and the hit counter works. It doesn't work on my setup though so I think wcrwcr is right in suggesting that (in my case anyway) it is because register_globals is off.

Everything else (uploads, ecards etc.) works fine.
A thread is for life. Not just for Christmas.

10
mcleines
Re: xcGallery foto rating
  • 2006/10/3 11:41

  • mcleines

  • Not too shy to talk

  • Posts: 108

  • Since: 2004/10/7


Hi!

Cookies are disabled so you are redirected back to the picture display view without any count.

And so it cases redirection problems with function header().

A solution is now to enable cookies or otherwise bringing up a suitable error message. For that edit the file ratepic.php and replace row 49 with

redirect_header('displayimage.php?pid='.$pic.'&pos='.(-$pic),2,"Please enable Cookies!");

Login

Who's Online

494 user(s) are online (399 user(s) are browsing Support Forums)


Members: 0


Guests: 494


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