Wiccle.com in Facebook Wiccle.com in Twitter Wiccle.com in LinkedIn Wiccle.com in Youtube RSS from Wiccle.com Wiccle.com in Atom
 
 
 

Thread: Forum Zone Thread Error

Started: August 10, 2010, 09:18 PM  ⋅  Zone: Public Forums  ⋅  Category: Bugs & Troubleshooting  ⋅  Posts: 3  ⋅  Views 1255
Started by: US-WebDesigner  ⋅  Description: Keep getting an error in my forum
Post #1
Member: US-WebDesigner  ⋅  Date: August 10, 2010, 09:18 PM  ⋅ Subject: "Forum Zone Thread Error"

I created a zone, then a category, then in Forum/Forum Zone, I clicked on the +Thread button to create a new thread, entered some info in all boxes and clicked on the publish button and get the following error:

Fatal error: Cannot redeclare make_namedate_ident() (previously declared in /home/rispoli/public_html/community/core/class_elements.php:48) in /home/rispoli/public_html/community/core/class_elements.php on line 46

I tried again in another browser window, same thing.  Using Safari (not Firefox).  

You can just login and create a user to try it out.

http://cnca.com/community

Sorry - put it in the wrong category here.

And - 

What is the difference between a forum post and a thread?

If I go the Forum Module's Index page, there is a box on the left side that allows for the creation of a post.  That actually seemed to go through without an error, and shows up under the Forum's "Latest Posts" tab, along with the other attempts I made trying to add a "thread" using the +Thread button from the Forum's "Forum Zone" tab which gave the errors.

On the other hand, if I look at New Threads or Updated Threads tabs, there is nothing listed?

If I go to My Posts, it shows 2 posts but no threads.

I assume that a post is one post that is not related to a thread, but I can't understand how that makes sense in a forum to have a floating post on its own - I just assumed when using the Add Post button that it would start a new thread.

And why did the threads that I created throw me an error and not show up as a thread but instead show as a post?

Thanks

Post #2
Member: Markus  ⋅  Date: August 12, 2010, 10:54 PM  ⋅ Subject: "Re: Forum Zone Thread Error"

I bumped into the same issue as I was working on the Wiccle.com updates.There is a fatal error when a thread is submitted into forums in WWB build 1.0.1.

This issue is caused because there are subfunctions inside a function that's generally only called once; in this case, it's called on two instances as the page is processed, and the functions become declared again, leading to a fatal error.

To fix this, open up class_elements.php. In there, you will find three functions that cause this, starting at line #45 and function make_namedate_ident(), and ending at #95 after make_verbose_ident(). Just add this conditional statement around them:

if (!function_exists('make_namedate_ident'))
{
   ...(three functions in here)...
}

This will prevent them from being declared twice, and the error is solved. This bug has been fixed for the next release.

Speaking of Forums, there is also a configuration variable that went missing as I was doing cleanup for the 1.0.1 release. Add this line into your variables.php file to prevent a  Notification level error from appearing on servers with error reporting cranked up for PHP:

$core['module']['posts_per_thread_page'] = 20;

 

Post #3
Member: Markus  ⋅  Date: August 12, 2010, 10:58 PM  ⋅ Subject: "Re: Forum Zone Thread Error"

The difference between threads and posts is that thread is a collection of posts.

The link in "Module Dashboard" says "Post", because there are permission switches for creating parents, categories and posts. There is no separate permission mask (and so no separate button) for threads as of yet. This will be added in upcoming builds to allow separate control of "add thread" and "reply to thread" (ie. "add post") for usergroups.

 

Bugs & Troubleshooting

Add to Favorites
Public Forums
Category  ⋅  Please report all bugs and discuss any problems in this forum.
 

Public Forums

Add to Favorites
Public Forums
Zone  ⋅ Public forum sections for support and discussions. Available for everyone.
 

Zone Categories

 
Questions? Ask us!
Back to Top