ichpen
Well-known member
Yes that's what I said in the PC, if you mean "Approved PC title" and "Denied PC title" when you say "Heading".
Don't send a "Denied" PC at all for now.
Yes title. Got it. Thanks.
Yes that's what I said in the PC, if you mean "Approved PC title" and "Denied PC title" when you say "Heading".
Don't send a "Denied" PC at all for now.
That is intentional. If you want a file to be able to be uploaded with the form, add a "File upload" question type. That will also enable it in the WYSIWYG editor. But I will re-visit that in the future.@Snog
Noticing another oddity. I have a form with a a WYSIWYG Editor field. When I trigger the form the Insert Image (CTRL+P) button only allows for URL image insertion (no upload from local is available). All other Editor Kitchen sink items do appear to show up correctly at least.
Editing the post with normal XF editor obviously permits that. Is that normal?
That is intentional. If you want a file to be able to be uploaded with the form, add a "File upload" question type. That will also enable it in the WYSIWYG editor. But I will re-visit that in the future.
That's why I said I would re-visit it. Not everyone wants people to be able to upload files (images or not) with the forms. And at the moment that's how it works. But I may be able to add an option to allow it in the WYSIWYG editor. We'll see.Yeah that's kind of an oddity IMHO. I'd be happy to see the Editor do this without a need for an additional question.
Files are allowed, but the user must have permission to upload files in the forum the form is posted in.Can the authority for uploading files be added?
I'll check into this first thing tomorrow morning when I'm in the office.@Snog
Don't know what happened but getting pages and pages of these since yesterday.
Stack trace
- ErrorException: [E_WARNING] Invalid argument supplied for foreach()
- src/addons/Snog/Forms/Cron/Pollresults.php:25
- Generated by: Unknown account
- Dec 4, 2018 at 1:01 PM
#0 src/addons/Snog/Forms/Cron/Pollresults.php(25): XF::handlePhpError(2, '[E_WARNING] Inv...', '/home/nginx/dom...', 25, Array)
#1 [internal function]: Snog\Forms\Cron\Pollresults:rocessResults(Object(XF\Entity\CronEntry))
#2 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#3 src/XF/Job/Manager.php(241): XF\Job\Cron->run(7.9950511455536)
#4 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9950511455536)
#5 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9950511455536)
#6 job.php(14): XF\Job\Manager->runQueue(false, 8)
#7 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(58) "https://mysite.com/whats-new/posts/571419/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Stack trace
- ErrorException: [E_NOTICE] Trying to get property 'responses' of non-object
- src/addons/Snog/Forms/Cron/Pollresults.php:22
- Generated by: Unknown account
- Dec 4, 2018 at 1:01 PM
#0 src/addons/Snog/Forms/Cron/Pollresults.php(22): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nginx/dom...', 22, Array)
#1 [internal function]: Snog\Forms\Cron\Pollresults:rocessResults(Object(XF\Entity\CronEntry))
#2 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#3 src/XF/Job/Manager.php(241): XF\Job\Cron->run(7.9950511455536)
#4 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9950511455536)
#5 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9950511455536)
#6 job.php(14): XF\Job\Manager->runQueue(false, 8)
#7 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(58) "https://mysite.com/whats-new/posts/571419/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Was a poll in a form thread deleted at some point? That's the only possible reason I can come up with after a quick look at the error and code.@Snog
Don't know what happened but getting pages and pages of these since yesterday.
Stack trace
- ErrorException: [E_WARNING] Invalid argument supplied for foreach()
- src/addons/Snog/Forms/Cron/Pollresults.php:25
- Generated by: Unknown account
- Dec 4, 2018 at 1:01 PM
#0 src/addons/Snog/Forms/Cron/Pollresults.php(25): XF::handlePhpError(2, '[E_WARNING] Inv...', '/home/nginx/dom...', 25, Array)
#1 [internal function]: Snog\Forms\Cron\Pollresults:rocessResults(Object(XF\Entity\CronEntry))
#2 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#3 src/XF/Job/Manager.php(241): XF\Job\Cron->run(7.9950511455536)
#4 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9950511455536)
#5 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9950511455536)
#6 job.php(14): XF\Job\Manager->runQueue(false, 8)
#7 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(58) "https://mysite.com/whats-new/posts/571419/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Stack trace
- ErrorException: [E_NOTICE] Trying to get property 'responses' of non-object
- src/addons/Snog/Forms/Cron/Pollresults.php:22
- Generated by: Unknown account
- Dec 4, 2018 at 1:01 PM
#0 src/addons/Snog/Forms/Cron/Pollresults.php(22): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nginx/dom...', 22, Array)
#1 [internal function]: Snog\Forms\Cron\Pollresults:rocessResults(Object(XF\Entity\CronEntry))
#2 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#3 src/XF/Job/Manager.php(241): XF\Job\Cron->run(7.9950511455536)
#4 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9950511455536)
#5 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9950511455536)
#6 job.php(14): XF\Job\Manager->runQueue(false, 8)
#7 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(58) "https://mysite.com/whats-new/posts/571419/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Was a poll in a form thread deleted at some point? That's the only possible reason I can come up with after a quick look at the error and code.
EDIT: OR is there a poll in a form thread where nobody voted?
The problem I'm having at the moment is I can't seem to duplicate the error. I'll continue to see if I can come up with some reason for XenForo returning no responses (the 'Yes'/'No' votes) being in a poll.No not deleted. Yes a few polls probably didn't get any votes.
The problem I'm having at the moment is I can't seem to duplicate the error. I'll continue to see if I can come up with some reason for XenForo returning no responses (the 'Yes'/'No' votes) being in a poll.
Since they are "Warnings" they shouldn't be affecting operation of the site and you can clear them.Thanks. In the meantime short of disabling the addon how can I stop the errors from clogging up my logs? I've got 30 pages since last night. Remove the polls from existing threads?
Since they are "Warnings" they shouldn't be affecting operation of the site and you can clear them.
The only real way to stop them would be to establish which thread is causing the error and delete it. But, that might be difficult to do.
Have there been any form threads with polls that have been deleted?
Try either hard deleting the thread or restoring it. Then clear the errors and see if that stops the errors. And please let me know.Actually one thread was soft deleted by a user I just saw.
We use essential cookies to make this site work, and optional cookies to enhance your experience.