Error With The Statistics Block


Subject: Error With The Statistics Block
Hi

I have just upgraded my forum to the latest RC1 of Icy Phoenix, but when I try to access the portal page I get the following error message,

Fatal error: Call to undefined function: color_group_colorize_name() in /homepages/8/d69702653/htdocs/blocks/blocks_imp_statistics.php on line 38

I have checked all the settings in the statistics mod and install and activated the statistics packs, the only way I can get the error message to go away is to turn off the statistics block in CMS.

I am using a custom style and suspect that their is proberbly a missing file for my custom theme but I don't know which one.

If anybody can help with this I would be very happy.

Subject: Re: Error With The Statistics Block
I just added a user block to the portal and now I am also getting this error message,

Warning: imp_user_block_block_func(includes/functions_color_groups.php) [function.imp-user-block-block-func]: failed to open stream: No such file or directory in /homepages/8/d69702653/htdocs/blocks/blocks_imp_user_block.php on line 33

Warning: imp_user_block_block_func() [function.include]: Failed opening 'includes/functions_color_groups.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/8/d69702653/htdocs/blocks/blocks_imp_user_block.php on line 33

Fatal error: Call to undefined function: color_group_colorize_name() in /homepages/8/d69702653/htdocs/blocks/blocks_imp_user_block.php on line 75

Any help

Subject: Re: Error With The Statistics Block
Daggers wrote: [View Post]
I just added a user block to the portal and now I am also getting this error message,

Warning: imp_user_block_block_func(includes/functions_color_groups.php) [function.imp-user-block-block-func]: failed to open stream: No such file or directory in /homepages/8/d69702653/htdocs/blocks/blocks_imp_user_block.php on line 33

Warning: imp_user_block_block_func() [function.include]: Failed opening 'includes/functions_color_groups.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/8/d69702653/htdocs/blocks/blocks_imp_user_block.php on line 33

Fatal error: Call to undefined function: color_group_colorize_name() in /homepages/8/d69702653/htdocs/blocks/blocks_imp_user_block.php on line 75

Any help


Re upload the file includles/fuctions_color_groups.php
Set CHMOD correctly.

Profile PM  
Subject: Re: Error With The Statistics Block
Thanks

I have now done that, but to let you know the file fuctions_color_groups.php is not included in the new release of Icy I had to upload it from an old release instead.

Subject: Re: Error With The Statistics Block
Still have this problem if anybody can help,

Fatal error: Call to undefined function: color_group_colorize_name() in /homepages/8/d69702653/htdocs/blocks/blocks_imp_statistics.php on line 38

This only occurs when using the fk_itis theme which is my prefered theme.

Subject: Re: Error With The Statistics Block
Correction this is happening on all my different themes including the default Icy Phoenix theme, this latest problem occured after I dumped the theme cache.

Subject: Re: Error With The Statistics Block
hey daggers....

maybe you dont use the latest version of that file...

the function must be

Code: [Download] [Hide] [Select]
colorize_username($newest_userdata['user_id']);

Subject: Re: Error With The Statistics Block
Sorry I am not quite sure what you mean, which file are you talking about.

If you mean the file blocks_imp_statistics then the current file reads like this

Code: [Download] [Hide] [Select]
global $template, $lang, $phpEx;

$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$total_topics = get_db_stat('topiccount');
$newest_userdata = get_db_stat('newestuser');
$newest_userdata['username'] = colorize_username($newest_userdata['user_id']);
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];


I am assuming then you are talking about the line;

Code: [Download] [Hide] [Select]
$newest_userdata['username'] = colorize_username($newest_userdata['user_id']);


Then has far as I can tell the line of code looks to be correct already.

Subject: Re: Error With The Statistics Block
Right I have figured a way around this problem but it is not the cure, to get the portal page to display and the statistics block to work I have omitted the line of code from the blocks_imp_statistics file so it looks like this;

Code: [Download] [Hide] [Select]
$newest_userdata['username'] = colorize_username($newest_userdata['user_id']);


Can anybody tell me why this line of code is causing the error anyway when it's active.

Subject: Re: Error With The Statistics Block
hmm

really strange if you have the correct line in your file...

are you sure that you have uploaded all files correct?

EDIT:
did you have cleared the cache folder? you can clear all files, but not the .htaccess and index.html file

Subject: Re: Error With The Statistics Block
Use themes adapted to RC1

Profile PM  
Subject: Re: Error With The Statistics Block
Quote:
Use themes adapted to RC1


It is not only the FK_Itis theme which I use, but all the new ones that came with RC1 as well.

Quote:
hmm

really strange if you have the correct line in your file...

are you sure that you have uploaded all files correct?

EDIT:
did you have cleared the cache folder? you can clear all files, but not the .htaccess and index.html file


I followed the upgrade instructions to the letter, deleting all the files that were required and saving copies of my config.php, .htaccess, and the three def..... files in the includes folder. Also cleaned out both my browser cache and the themes cache as well.

Subject: Re: Error With The Statistics Block
Daggers, have you done an upgrade from 1.1.0.15c to RC1?

Profile PM  
Subject: Re: Error With The Statistics Block
Quote:
Daggers, have you done an upgrade from 1.1.0.15c to RC1?


Yes I think it was 1.1.0.15c, does this help.

Subject: Re: Error With The Statistics Block
It helps so much.

Overring files is not the solution.

Make sure you steped this:

Spoiler: [ Show ]

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.5402s (PHP: 4% SQL: 96%)
SQL queries: 10 - Debug Off - GZIP Enabled