[TH] Mandatory Fields [Deleted]

Getting an error with tapatalk:

Server Error Log
Error Info
ErrorException: Fatal Error: Call to a member function setSections() on a non-object -library/Waindigo/MandatoryFields/Listener/ControllerPreDispatch.php:25
Generated By: SoundTom, 5 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(47) "http://www.controlbooth.com/mobiquo/mobiquo.php"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Just enabled a mandatory location field. Doesn't seem to affect the tapatalk app, but I've got pages of these errors since installing Mandatory Fields last night.
 
Do you have any other Waindigo add-ons installed? Any errors with those and tapatalk or just this add-on?
 
Yes, I have a number of your other addons installed, but the error message is exactly the same as the one above for pages and pages of the error log, only affecting or affected by the tapatalk addon.
 
I double-checked to make sure I was on the latest releases for all of your code as well as current production code for tapatalk.
 
Can fields created with this addon still be referenced in templates? (eg. adding the fieldid to signature template)
 
Can fields created with this addon still be referenced in templates? (eg. adding the fieldid to signature template)
This add-on just extends the existing Custom Fields functionality of core XenForo, so everything that works for normal custom fields will work.
 
So, I tested things out. I disabled tapatalk and the errors stopped. I then enabled Tapatalk and disabled Mandatory Fields and the errors stopped. Only when Mandatory Fields is active with Tapatalk, does the error occur. I updated Tapatalk to the new version 2.0.4 that was released a couple days ago and the same thing occurred. Now, I'm not sure whether the fault lies with your code or Tapatalk's. But if you can help me diagnose the issue one way or the other, I would very much appreciate it!

This is the error:

ErrorException: Fatal Error: Call to a member function setSections() on a non-object -library/Waindigo/MandatoryFields/Listener/ControllerPreDispatch.php:25
Generated By: SoundTom, 5 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(47) "http://www.controlbooth.com/mobiquo/mobiquo.php"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

I've posted a thread asking for the same help on the Tapatalk forum as well: https://support.tapatalk.com/thread...2-0-4-and-mandatory-fields-by-waindigo.24894/
 
Last edited:
Just checking to see if I'm missing something here.

  • Includes options to include core fields, 'Custom Title', 'Location', 'Occuptation' and 'Home page';

I only have the options to make "location" and "home page" mandatory...?
 
That did the trick, but I have also noticed several of these...

Error Info
ErrorException: Fatal Error: Call to a member function setSections() on a non-object - library/Waindigo/MandatoryFields/Listener/ControllerPreDispatch.php:25
Generated By:fit, 8 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(50) "https://*********************/mobiquo.php"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Last edited:
That did the trick, but I have also noticed several of these...

Error Info
ErrorException: Fatal Error: Call to a member function setSections() on a non-object - library/Waindigo/MandatoryFields/Listener/ControllerPreDispatch.php:25
Generated By: fit, 8 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(50) "https://www.turbosaquatics.com/mobiquo/mobiquo.php"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Yup, I'm still having this error as well.
 
Download the file manually and open the file "addon-Waindigo_MandatoryFields.xml" the and find

Code:
<addon addon_id="Waindigo_MandatoryFields" title="Mandatory Fields by Waindigo" version_string="1.0.0c" version_id="1396535388" url="https://waindigo.com" install_callback_class="Waindigo_Install" install_callback_method="install" uninstall_callback_class="Waindigo_Install" uninstall_callback_method="uninstall">

Update the entry "version_id="1396535388" to version_id="1402382279"

Do this the following files:
/upload/addon-Waindigo_MandatoryFields.xml
/upload/install/data/addon-Waindigo-MandatoryFields.xml

Then rezip the file and upload again.

Or just download this file ;)
 
Last edited by a moderator:
yes I uploaded it and tried to upgrade through the ACP and got the error saying that I cannot downgrade. Then my database had an error and my site crashed. Strangely it came back up on it's own while I completely freaked out. I had backed up the DB last night, as I frantically searched for that it came back up.
 
yes I uploaded it and tried to upgrade through the ACP and got the error saying that I cannot downgrade. Then my database had an error and my site crashed. Strangely it came back up on it's own while I completely freaked out. I had backed up the DB last night, as I frantically searched for that it came back up.
Probably an unrelated error with your database.
 
Ok but after it came back up and I tried to install it again, it told me that I was trying to upgrade to an older version, same as the first attempt, so do I do what @dvsDave wrote?
 
Top Bottom