Author |
Message |
panna
New Member


Joined: Aug 17, 2009
Posts: 4
|
Posted:
Tue Aug 18, 2009 6:26 pm |
|
Hello
I made a clean installation of rn 2.30.02, on my local host, and I try to instal sommaire v2 and v3 but when I activate the block, die. I search 2 days but .....
I dont know why
Thank you and sorry for my english. |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Tue Aug 18, 2009 11:40 pm |
|
Do you get any error messages?
If not try turning on error reporting in the config.php file. |
|
|
|
 |
panna

|
Posted:
Wed Aug 19, 2009 9:11 am |
|
Error:
Code:Deprecated: Function eregi() is deprecated in E:\xampp\htdocs\test.zoonutritie.ro\blocks\block-Sommaire.php on line 24
Deprecated: Function eregi() is deprecated in E:\xampp\htdocs\test.zoonutritie.ro\blocks\block-Sommaire.php on line 33
Fatal error: Call to undefined function sommaire_is_user() in E:\xampp\htdocs\test.zoonutritie.ro\blocks\block-Sommaire.php on line 52
|
Is v3 |
|
|
|
 |
jakec

|
Posted:
Wed Aug 19, 2009 10:18 am |
|
|
|
 |
panna

|
Posted:
Wed Aug 19, 2009 11:10 am |
|
I made this
Code:Look in rnconfig.php for $error_reporting = E_ALL^E_NOTICE; (around line 82) and change it to this $error_reporting = E_ALL^E_NOTICE^E_DEPRECATED;
|
Fatal error: Call to undefined function sommaire_is_user() in E:\xampp\htdocs\test.zoonutritie.ro\blocks\block-Sommaire.php on line 52 - is still there.
this is the code, line 50-54
Code://on va tester si le visiteur est un admin et/ou un membre
$is_admin = (is_admin($admin)) ? 1 : 0 ;
$is_user = (sommaire_is_user($user,$gestiongroupe)) ? 1 : 0 ; //cf. fonction sommaire_is_user() en bas
global $userpoints; // défini dans la fonction sommaire_is_user
$userpoints=intval($userpoints); //juste au cas où ;)
|
|
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sat Aug 22, 2009 8:36 am |
|
panna, around line 1200 or more, you should have something like this:
function sommaire_is_user($user, $gestiongroupe) {
Have you modified this block file any? That function should be there. Sommaire works just fine on my site. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
panna

|
Posted:
Sun Aug 23, 2009 4:10 am |
|
Quote: | panna, around line 1200 or more, you should have something like this:
function sommaire_is_user($user, $gestiongroupe) { |
The line is present. I find the "bug", the cause was php server version or settings from php.ini, i am not shore but the script work fine on another server with php 4 |
|
|
|
 |
montego

|
Posted:
Sun Aug 23, 2009 6:43 pm |
|
Hhhhmmmm... very odd. I haven't looked at this script in years, so not sure off the top of my head what it could be. It almost sounds like something caused the script to die in the parsing stage, but then why get a run-time error. Just doesn't make sense at the moment. |
|
|
|
 |
|