PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
panna
New Member
New Member


Joined: Aug 17, 2009
Posts: 4

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

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: 3028
Location: United Kingdom

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

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
New Member
New Member


Joined: Aug 17, 2009
Posts: 4

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

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


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

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

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

This post here might shed some light:
Only registered users can see links on this board!
Get registered or login to the forums!


Although it is not about the same part of code it should give you an idea of how to fix it.
View user's profile Send private message
panna
New Member
New Member


Joined: Aug 17, 2009
Posts: 4

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

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ù ;)
View user's profile Send private message
montego
Former Admin in Good Standing


Joined: Aug 29, 2004
Posts: 9071
Location: Arizona

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

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


Joined: Aug 17, 2009
Posts: 4

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

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
View user's profile Send private message
montego
Former Admin in Good Standing


Joined: Aug 29, 2004
Posts: 9071
Location: Arizona

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

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.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum