Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN All Other Issues
Author Message
panna
New Member
New Member



Joined: Aug 17, 2009
Posts: 4

PostPosted: Tue Aug 18, 2009 6:26 pm Reply with quote

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.
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Tue Aug 18, 2009 11:40 pm Reply with quote

Do you get any error messages?

If not try turning on error reporting in the config.php file.
 
View user's profile Send private message
panna







PostPosted: Wed Aug 19, 2009 9:11 am Reply with quote

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







PostPosted: Wed Aug 19, 2009 10:18 am Reply with quote

I believe this is related to the version of PHP you are running.

This post here might shed some light: http://www.ravenphpscripts.com/posts17995-highlight-.html

Although it is not about the same part of code it should give you an idea of how to fix it.
 
panna







PostPosted: Wed Aug 19, 2009 11:10 am Reply with quote

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

PostPosted: Sat Aug 22, 2009 8:36 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
panna







PostPosted: Sun Aug 23, 2009 4:10 am Reply with quote

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







PostPosted: Sun Aug 23, 2009 6:43 pm Reply with quote

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN All Other Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©