Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error creating new forum
14-Nov-2011, 03:55 AM
Post: #1
Error creating new forum
Hi all.

I get this Javascript error when I try to create a new forum: "Your last operation resulted in an error".

In Firefox's Error Console I get this:

Code:
Error: syntax error
File: javascript::void()
Line: 1
Source code: :void()

Any ideas??

Thanks.
Find all posts by this user
Quote this message in a reply
14-Nov-2011, 04:22 AM
Post: #2
RE: Error creating new forum
Have you tried upgrading to Precurio 2.2 . This may fix this issue and the task issue.
Find all posts by this user
Quote this message in a reply
14-Nov-2011, 04:28 AM
Post: #3
RE: Error creating new forum
I didn't know there was a 2.2 version.

I'll try to upgrade it, but I've made many changes that 2.2 version will override, I'm afraid.

I'll post the results.

Thank you.
Find all posts by this user
Quote this message in a reply
14-Nov-2011, 04:33 AM
Post: #4
RE: Error creating new forum
Oh yes, the upgrade will override those changes. You can backup your changed files and we will work on integrating the changes into v2.2. later.
Find all posts by this user
Quote this message in a reply
14-Nov-2011, 06:45 AM
Post: #5
RE: Error creating new forum
I've upgraded to 2.2 but issues are not fixed. I get the same errors.

I've made a backup and I have upgraded the installation using the "Upgrade" tool from admin menu, but the issues are still there.

After that, I restored the backup and then I upgraded files one by one using Neatbeans Diff tool to merge 2.2 version changes and my own changes, but nothing changes: "Reject" button doesn't work and I still can't create a new forum.

The creating forum issue is thrown in application/forum/models/Forums.php, line 39
Find all posts by this user
Quote this message in a reply
14-Nov-2011, 07:55 AM
Post: #6
RE: Error creating new forum
I've noticed that Precurio tries to insert a record in table "forums" when you try to add a forum.

The table "forums" has a field named "last_action" which has not default value and can not be setted to NULL. So if you try to insert a row in this table, you HAVE TO set a value for "last_action" field.

Precurio doesn't do it. The SQL sentence that Precurio builds is:
Code:
INSERT INTO `forums` (`title`, `creator`, `date_created`, `description`) VALUES (?, ?, ?, ?)

So we can see that Precurio doesn't set a value for "last_action" field, so the database throws an error.

To TEMPORARY fix this issue, I've changed the properties of "last_action" field in the database setting the default value to "NULL" and making it available to be NULL.

Is this a good solution? Can this fix affect to other processes?

I'm sorry for my english. I hope you could unserstand this post.
Find all posts by this user
Quote this message in a reply
14-Nov-2011, 12:32 PM
Post: #7
RE: Error creating new forum
The fix is good. I don't think it will affect anything.

*thumbs up*
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Unable to create topic in forum williamkuek 7 1,473 04-Feb-2013 08:38 PM
Last Post: jordan
  forum in precurio Nirmit Modi 4 1,014 04-Jul-2012 07:57 AM
Last Post: Nirmit Modi
  Attachments and Stickies in Forum michaelm14 2 748 16-Nov-2011 05:03 PM
Last Post: michaelm14
  forum - recevice email for new replies carabusu 1 1,608 24-Jun-2011 03:43 AM
Last Post: mayorbrain

Forum Jump:


User(s) browsing this thread: 1 Guest(s)