- Joined
- May 15, 2020
- Messages
- 23
- Reaction score
- 7
Hello
Many bugs again.
#1: Invalid payment provider class specified during installation.
\XenSoluce\CreditSystem\Setup :: installStep2:
Since the backslash is not escaped, a "XenSoluceCreditSystem:Credits" is inserted into the table instead of "XenSoluce\CreditSystem:Credits"
It should look like this:
#2: «Trying to get property 'title' of non-object» when reply to the thread and clicking on the "like" button.
One error for both actions.
#3: «Cannot use object as array» when changing the reaction to the message.
#0 src/XF/Mvc/Entity/Entity.php(1595): XenSoluce\CreditSystem\Entity\CreditsTransaction->_postDelete()
#1 src/addons/XenSoluce/CreditSystem/Repository/Credit.php(717): XF\Mvc\Entity\Entity->delete()
#2 src/addons/XenSoluce/CreditSystem/XF/Pub/Controller/Post.php(55): XenSoluce\CreditSystem\Repository\Credit->getReactionForCredit(Object(XenSoluce\CreditSystem\XF\Entity\Thread), Object(XenSoluce\CreditSystem\XF\Entity\Post), Object(MMO\Hide\XF\Entity\User), Object(MMO\Hide\XF\Entity\User), true, Object(XF\Entity\ReactionContent))
#3 src/XF/Mvc/Dispatcher.php(350): XenSoluce\CreditSystem\XF\Pub\Controller\Post->actionReact(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'React', Object(XF\Mvc\RouteMatch), Object(XenSoluce\CreditSystem\XF\Pub\Controller\Post), NULL)
#5 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\CreditSystem\XF\Pub\Controller\Post), NULL)
#6 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#8 src/XF.php(391): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}
#4: Missing error phrase about insufficient credits for purchase.
#5: Alerts?
In the event settings, you can enable alerts:
But where are they? I don't get them for three out of four events (although, given the errors above, I shouldn't be surprised).
The only alert I received was about credits for creating a topic, but the amount was displayed incorrectly (event cost = 10 credits):
#6: User upgrade page.
This is not so much information about the bug as a suggestion...
Can this be done in the form of a table? It looks very ugly.
And why are the edit button red and the delete button green? This is not logical.
#7: XenForo Resource Standards?
This also does not apply to the bug reporting, but still, I found it when I looked for the reasons for the bugs described above:
\XenSoluce\CreditSystem\Repository\Credit :: PostThreadDeleted — line 42:
This is inconsistent with Clause 6 of the XenForo Resource Standards. You can use this:
To be continued... I hope no...
Regards
Many bugs again.
#1: Invalid payment provider class specified during installation.
\XenSoluce\CreditSystem\Setup :: installStep2:
PHP:
public function installStep2(array $stepParams = [])
{
$db = $this->db();
$db->query('INSERT INTO `xf_payment_provider`(`provider_id`, `provider_class`, `addon_id`) VALUES (\'XenSoluce_credit\',\'XenSoluce\CreditSystem:Credits\',\'XenSoluce/CreditSystem\')');
}
It should look like this:
PHP:
public function installStep2(array $stepParams = [])
{
$db = $this->db();
$db->query('INSERT INTO `xf_payment_provider`(`provider_id`, `provider_class`, `addon_id`) VALUES (\'XenSoluce_credit\',\'XenSoluce\\CreditSystem:Credits\',\'XenSoluce/CreditSystem\')');
}
#2: «Trying to get property 'title' of non-object» when reply to the thread and clicking on the "like" button.
One error for both actions.
ErrorException: [E_NOTICE] Trying to get property 'title' of non-object - src/addons/XenSoluce/CreditSystem/Entity/CreditsTransaction.php:193
[/PLAIN]
#0 src/addons/XenSoluce/CreditSystem/Entity/CreditsTransaction.php(193): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/sites/mvdev.ml...', 193, Array)
#1 src/addons/XenSoluce/CreditSystem/Service/Notifier.php(72): XenSoluce\CreditSystem\Entity\CreditsTransaction->getTitleNotifier()
#2 src/addons/XenSoluce/CreditSystem/Service/Notifier.php(54): XenSoluce\CreditSystem\Service\Notifier->_sendNotifications('reaction', Object(MMO\Hide\XF\Entity\User), 10, 1)
#3 src/addons/XenSoluce/CreditSystem/Entity/CreditsTransaction.php(155): XenSoluce\CreditSystem\Service\Notifier->send('reaction', Object(MMO\Hide\XF\Entity\User), 10, 1)
#4 src/XF/Mvc/Entity/Entity.php(1219): XenSoluce\CreditSystem\Entity\CreditsTransaction->_postSave()
#5 src/addons/XenSoluce/CreditSystem/Repository/Credit.php(844): XF\Mvc\Entity\Entity->save(true, false)
#6 src/addons/XenSoluce/CreditSystem/Repository/Credit.php(706): XenSoluce\CreditSystem\Repository\Credit->SaveAllProcess(Object(XenSoluce\CreditSystem\Entity\CreditEvents), Object(MMO\Hide\XF\Entity\User), 18, 1, 'Noct', Array, true, true)
#7 src/addons/XenSoluce/CreditSystem/XF/Pub/Controller/Post.php(55): XenSoluce\CreditSystem\Repository\Credit->getReactionForCredit(Object(XenSoluce\CreditSystem\XF\Entity\Thread), Object(XenSoluce\CreditSystem\XF\Entity\Post), Object(MMO\Hide\XF\Entity\User), Object(MMO\Hide\XF\Entity\User), true, Object(XF\Entity\ReactionContent))
#8 src/XF/Mvc/Dispatcher.php(350): XenSoluce\CreditSystem\XF\Pub\Controller\Post->actionReact(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XFost', 'React', Object(XF\Mvc\RouteMatch), Object(XenSoluce\CreditSystem\XF\Pub\Controller\Post), NULL)
#10 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\CreditSystem\XF\Pub\Controller\Post), NULL)
#11 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#13 src/XF.php(391): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
[/PLAIN]
#0 src/addons/XenSoluce/CreditSystem/Entity/CreditsTransaction.php(193): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/sites/mvdev.ml...', 193, Array)
#1 src/addons/XenSoluce/CreditSystem/Service/Notifier.php(72): XenSoluce\CreditSystem\Entity\CreditsTransaction->getTitleNotifier()
#2 src/addons/XenSoluce/CreditSystem/Service/Notifier.php(54): XenSoluce\CreditSystem\Service\Notifier->_sendNotifications('reaction', Object(MMO\Hide\XF\Entity\User), 10, 1)
#3 src/addons/XenSoluce/CreditSystem/Entity/CreditsTransaction.php(155): XenSoluce\CreditSystem\Service\Notifier->send('reaction', Object(MMO\Hide\XF\Entity\User), 10, 1)
#4 src/XF/Mvc/Entity/Entity.php(1219): XenSoluce\CreditSystem\Entity\CreditsTransaction->_postSave()
#5 src/addons/XenSoluce/CreditSystem/Repository/Credit.php(844): XF\Mvc\Entity\Entity->save(true, false)
#6 src/addons/XenSoluce/CreditSystem/Repository/Credit.php(706): XenSoluce\CreditSystem\Repository\Credit->SaveAllProcess(Object(XenSoluce\CreditSystem\Entity\CreditEvents), Object(MMO\Hide\XF\Entity\User), 18, 1, 'Noct', Array, true, true)
#7 src/addons/XenSoluce/CreditSystem/XF/Pub/Controller/Post.php(55): XenSoluce\CreditSystem\Repository\Credit->getReactionForCredit(Object(XenSoluce\CreditSystem\XF\Entity\Thread), Object(XenSoluce\CreditSystem\XF\Entity\Post), Object(MMO\Hide\XF\Entity\User), Object(MMO\Hide\XF\Entity\User), true, Object(XF\Entity\ReactionContent))
#8 src/XF/Mvc/Dispatcher.php(350): XenSoluce\CreditSystem\XF\Pub\Controller\Post->actionReact(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XFost', 'React', Object(XF\Mvc\RouteMatch), Object(XenSoluce\CreditSystem\XF\Pub\Controller\Post), NULL)
#10 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\CreditSystem\XF\Pub\Controller\Post), NULL)
#11 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#13 src/XF.php(391): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
[/PLAIN]
#3: «Cannot use object as array» when changing the reaction to the message.
Error: Cannot use object as array - src/addons/XenSoluce/CreditSystem/Entity/CreditsTransaction.php:167
#0 src/XF/Mvc/Entity/Entity.php(1595): XenSoluce\CreditSystem\Entity\CreditsTransaction->_postDelete()
#1 src/addons/XenSoluce/CreditSystem/Repository/Credit.php(717): XF\Mvc\Entity\Entity->delete()
#2 src/addons/XenSoluce/CreditSystem/XF/Pub/Controller/Post.php(55): XenSoluce\CreditSystem\Repository\Credit->getReactionForCredit(Object(XenSoluce\CreditSystem\XF\Entity\Thread), Object(XenSoluce\CreditSystem\XF\Entity\Post), Object(MMO\Hide\XF\Entity\User), Object(MMO\Hide\XF\Entity\User), true, Object(XF\Entity\ReactionContent))
#3 src/XF/Mvc/Dispatcher.php(350): XenSoluce\CreditSystem\XF\Pub\Controller\Post->actionReact(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'React', Object(XF\Mvc\RouteMatch), Object(XenSoluce\CreditSystem\XF\Pub\Controller\Post), NULL)
#5 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\CreditSystem\XF\Pub\Controller\Post), NULL)
#6 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#8 src/XF.php(391): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}
#4: Missing error phrase about insufficient credits for purchase.
#5: Alerts?
In the event settings, you can enable alerts:
But where are they? I don't get them for three out of four events (although, given the errors above, I shouldn't be surprised).
The only alert I received was about credits for creating a topic, but the amount was displayed incorrectly (event cost = 10 credits):
#6: User upgrade page.
This is not so much information about the bug as a suggestion...
Can this be done in the form of a table? It looks very ugly.
And why are the edit button red and the delete button green? This is not logical.
#7: XenForo Resource Standards?
This also does not apply to the bug reporting, but still, I found it when I looked for the reasons for the bugs described above:
\XenSoluce\CreditSystem\Repository\Credit :: PostThreadDeleted — line 42:
PHP:
$postIds = $db->fetchAllColumn("SELECT post_id FROM xf_post WHERE thread_id = ? ORDER BY post_id", $id );
PHP:
$postIds = $this->finder('XF:Post')->where('thread_id', $id)->order('post_id')->pluckFrom('post_id')->fetch();
To be continued... I hope no...
Regards