Registered users change view and get error message [message #185403] |
Wed, 26 March 2014 11:03  |
|
I am a newbie at operating FUDforum and we really like it. I am not a programmer and need some assistance please.
We run a site with all forums moderated using the default theme. About the only thing that has been changed in the theme is the welcome banner.
If a registered user goes to Control Panel > Account Settings > Default Topic View: and selects "Flat topic listing/Tree message listing" instead of the default of "Flat View message and topic listing" everything seems to work but these messages appear at the top of the page, above the welcome banner:
Notice: Undefined property: stdClass::$kiddie_count in C:\xampp\htdocs\theme\default\tree.php on line 1039
Notice: Undefined property: stdClass::$kiddie_count in C:\xampp\htdocs\theme\default\tree.php on line 1036
If they change it back, the error goes away.
From the admin pages, there is nothing in the error logs.
Lines 1035-1042 from tree.php
if ($r->reply_to > 0) {
$arr[$r->reply_to]->kiddie_count++;
$arr[$r->reply_to]->kiddies[] = &$arr[$r->id];
} else if ($r->reply_to == 0) {
$tree->kiddie_count++;
$tree->kiddies[] = &$arr[$r->id];
}
}
Can anyone recommend corrective action?
|
|
|
|
Re: Registered users change view and get error message [message #185449 is a reply to message #185443] |
Mon, 31 March 2014 15:33   |
|
According to the Administration Forum Dashboard:
FUDforum: 3.0.5
PHP: 5.5.9
Database: mysql 5.6.16 (mysqli)
Operating system: Windows NT 6.1
It was downloaded (sourceforge.net/projects/fudforum/files/) and installed Feb 27th 2014.
System Configuration
Overview of your system's configuration. Please include this when reporting bugs on the support forum:
FUDforum version: 3.0.5
PHP version: 5.5.9
PHP built on: Windows NT FUDFORUM 6.1 build 7601 (Windows 7 Business Edition Service Pack 1) i586
Database type: mysql (mysqli)
Database version: 5.6.16
Web server: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9
Web server to PHP interface: apache2handler
Relevant PHP settings:
Safe mode: OFF
Open basedir: none
Display errors: ON
File uploads: ON
Maximum file upload size: 2M
Magic quotes: OFF
Output buffering: Yes
Disabled functions: none
PSpell support: No
Zlib support: Yes
|
|
|
|
Re: Registered users change view and get error message [message #185474 is a reply to message #185464] |
Wed, 02 April 2014 13:47   |
|
I want to thank you for all of your help so far.
I have put together some web page shots for you to take a look at.
These files are in the attached web_page_graphics.zip file.
1 - home page - logged in.mht
2 - Control Paned.mht
3 - Showing Tree list.mht
4 - Showing after selecting message.mht
A - Topics - Admin Control Panel_php.mht
B - Message Settings - Admin Control Panel_php.mht
1 thru 4 are from the aspect of the user, and A and B are the Topics and Message Settings from the Admin Control Panel.
If there are any files that you would like a copy of, let me know and I will be glad to provide them. If there are any other details I can provide, please let me know.
If you would like to log into my site here is the link:
http://forum.comtrol.com/
If you would like admin rights to look around, send me a private email once you are logged in.
I don't really have a problem with disabling the notices, but if possible I would really like to get to the bottom of the cause.
|
|
|
|
Re: Registered users change view and get error message [message #185478 is a reply to message #185477] |
Wed, 02 April 2014 16:31   |
|
I have looked in both php.ini and php.ini-production.
Quote:error_reporting = E_ALL & ~E_NOTICE
error_reporting = E_ALL & ~E_NOTICE | E_STRICT
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ER... _ERROR
error_reporting = E_ALL & ~E_NOTICE
It looks like line 1 and line 4 are the same.
I searched both php.ini and php.ini-production for simply "E_ALL & ~E_NOTICE" and "E_COMPILE_ERROR" (without using the quotes) and every line already has the semi-colon.
Should I manually add the lines in the section called ; Error Level Constants: ?
|
|
|
|
|