Jump to content

Forums

Search In
  • More options...
Find results that contain...
Find results in...

Application Error


Ezaco
 Share

Recommended Posts

When submitting a new application on my forums I receive the below error.

INSERT INTO `forums_topics` ( `start_date`, `last_post`, `starter_id`, `starter_name`, `last_real_post`, `last_poster_id`, `last_poster_name`, `forum_id`, `approved`, `state`, `views`, `pinned`, `featured`, `posts`, `topic_queuedposts`, `topic_hiddenposts`, `title`, `title_seo`, `topic_open_time`, `topic_close_time` ) VALUES ( 1540421718, 1540421718, NULL, 'Col Penny', 1540421718, 2, 'Col Penny', 33, 1, 'open', 0, 0, 0, 0, 0, 0, 'PERSCOM: New Application From Jacob Penny', 'perscom-new-application-from-jacob-penny', 0, 0 )
IPS\Db\Exception: Column 'starter_id' cannot be null (1048)
#0 /var/www/html/system/Db/Db.php(807): IPS\_Db->preparedQuery('/*IPS\\Patterns\\...', Array)
#1 /var/www/html/system/Patterns/ActiveRecord.php(459): IPS\_Db->insert('forums_topics', Array)
#2 [internal function]: IPS\Patterns\_ActiveRecord->save()
#3 /var/www/html/init.php(460) : eval()'d code(120): call_user_func_array('parent::save', Array)
#4 [internal function]: IPS\Patterns\rules_hook_ipsPatternsActiveRecord->save()
#5 /var/www/html/init.php(460) : eval()'d code(324): call_user_func_array('parent::save', Array)
#6 /var/www/html/applications/forums/sources/Topic/Topic.php(1405): IPS\rules_hook_ipsContent->save()
#7 /var/www/html/system/Content/Item.php(331): IPS\forums\_Topic->save()
#8 /var/www/html/applications/perscom/sources/Applications/Application.php(496): IPS\Content\_Item::createFromForm(Array, Object(IPS\forums\Forum), true)
#9 /var/www/html/system/Node/Model.php(3003): IPS\perscom\Applications\_Application->postSaveForm(Array)
#10 [internal function]: IPS\Node\_Model->saveForm(Array)
#11 /var/www/html/init.php(460) : eval()'d code(83): call_user_func_array('parent::saveFor...', Array)
#12 /var/www/html/applications/perscom/sources/Applications/Application.php(328): IPS\Node\rules_hook_ipsNodeModel->saveForm(Array)
#13 /var/www/html/applications/perscom/modules/front/applications/application.php(92): IPS\perscom\Applications\_Application->start()
#14 /var/www/html/system/Dispatcher/Controller.php(85): IPS\perscom\modules\front\applications\_application->start()
#15 /var/www/html/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
#16 /var/www/html/applications/perscom/modules/front/applications/application.php(31): IPS\Node\_Controller->execute()
#17 /var/www/html/system/Dispatcher/Dispatcher.php(146): IPS\perscom\modules\front\applications\_application->execute()
#18 /var/www/html/index.php(13): IPS\_Dispatcher->run()
#19 {main}

 

The application does go through in PERSCOM, but it does not create a post.

Edited by Ezaco
Link to comment
Share on other sites

  • Administrators

I've looked into this error as well as your stack trace and cannot reproduce it. Looking at the data trying to be inserted into the DB, the author of the forum topic is partially set. The author name came across but the author ID did not. This is what triggered the 'starter_id' cannot be NULL error. I find this quite strange because the author name and ID are passed in the same object, not separately. Also, important to note, this error is from code in IPB, not PERSCOM. Have you been able to reproduce it? Or anyone else dealt with this error?

My best advice at this point, log out, clear your cache and re-log back in to reset the loggedIn user object. 

Owner
Deschutes Design Group LLC
email | jon@deschutesdesigngroup.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.