[TH] Credits: Shop [Deleted]

What I'd love to see is ability to
  • add sub-categories or nested categories for products
  • when clicking an item being able to see more detailed information about product including image attachments etc.
  • when someone doesn't have enough credits to buy a product where it says you don't have enough credits a link to purchase more credits (packages page)
  • possibly ability to discuss or review products/items from shop or comments below item with limit in admin to how many comments before pagination etc. Kicks in.
Thank you for adding gift card and item the new install for both core and 1.0.7 and shop 1.0.4 was flawless, haven't tested to much yet but loving it so far.
 
Not sure if I should report this in this shop addon discussion or the main credits addon, but every time I try to upload a file to purchase with credits in the resource manager, I get:
The following error occurred
There was a problem uploading your file.

It happens with txt files, zip, png, jpg... and am stuck there. I use the latest XF and RM versions.
Thanks!
 
Trying to reply to threads gives me this error in the javascript console, just after I upgraded to version 1.0.4

Code:
<li><i>Illegal string offset 'icons'</i> in /xxxxx/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 642: <pre>641: $__compilerVar21 = '';
642: if ($post['adcredit_shop_postbit_icons']['icons'])
643: {
</pre></li>
</ol></div>

I can confirm this is an AD Credits Shop error, and not a problem with the Core.

I don't have a lot of shop custom options, so should I just re-install it?
 
Last edited:
Is there a way to have a message sent to a specified user (or users) when an item has been purchased? It would be very helpful in some cases or have an option within products that you can check to have x user notified that user x purchase x product?
 
Hello,

I am experiencing the following issues with this addon.
  • When deleting an item from ADCredit Shop, it does NOT remove from the user's inventory. Deleted items still display on postbit.
  • There seems to be no inventory display on profile, only on postbit.
  • Transaction log is not cleaned up when a product is deleted, or even the entire store is removed.
Screen Shot 2015-03-26 at 3.52.18 AM.webp
  • Finally, I attempted to uninstall and reinstall the plugin in order to rectify some of these problems. It seems the uninstaller process did not completely remove the plugin, as I get errors about columns already existing when I try to install again. Please fix the uninstaller, and provide me with queries to run to fix this issue:
Code:
Mysqli statement execute error : Duplicate column name 'adcredit_shop_postbit_icons'


[*]Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
[*]Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
[*]Zend_Db_Adapter_Abstract->query() in Audentio/Credit/Shop/Listener/Install/1000301.php at line 22
[*]Audentio_Credit_Shop_Listener_Install_1000301::run() in Audentio/Credit/Shop/Listener/Install.php at line 28
[*]Audentio_Credit_Shop_Listener_Install::run()
[*]call_user_func() in XenForo/Model/AddOn.php at line 215
[*]XenForo_Model_AddOn->installAddOnXml() in Waindigo/CustomFields/Extend/XenForo/Model/AddOn.php at line 114
[*]Waindigo_CustomFields_Extend_XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
[*]XenForo_Model_AddOn->installAddOnXmlFromFile() in AddOnInstaller/ControllerAdmin/AddOn.php at line 36
[*]AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 347
[*]XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
[*]XenForo_FrontController->run() in /var/www/censored.com/admin.php at line 13
 
Not sure if I should report this in this shop addon discussion or the main credits addon, but every time I try to upload a file to purchase with credits in the resource manager, I get:
The following error occurred
There was a problem uploading your file.

It happens with txt files, zip, png, jpg... and am stuck there. I use the latest XF and RM versions.
Thanks!

I doubt this is related to the credits Add-on. Though, if it is it would be the core. Try to disable the credits add-on and see if you still get the error as I don't get this issue, and we don't change anything with file uploads.

Trying to reply to threads gives me this error in the javascript console, just after I upgraded to version 1.0.4

Code:
<li><i>Illegal string offset 'icons'</i> in /xxxxx/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 642: <pre>641: $__compilerVar21 = '';
642: if ($post['adcredit_shop_postbit_icons']['icons'])
643: {
</pre></li>
</ol></div>

I can confirm this is an AD Credits Shop error, and not a problem with the Core.

I don't have a lot of shop custom options, so should I just re-install it?

Shouldn't need to reinstall it. This should be fixed on the update I'm about to release shortly :)

Hello,

I am experiencing the following issues with this addon.
  • When deleting an item from ADCredit Shop, it does NOT remove from the user's inventory. Deleted items still display on postbit.
  • There seems to be no inventory display on profile, only on postbit.
  • Transaction log is not cleaned up when a product is deleted, or even the entire store is removed.
View attachment 102185
  • Finally, I attempted to uninstall and reinstall the plugin in order to rectify some of these problems. It seems the uninstaller process did not completely remove the plugin, as I get errors about columns already existing when I try to install again. Please fix the uninstaller, and provide me with queries to run to fix this issue:
Code:
Mysqli statement execute error : Duplicate column name 'adcredit_shop_postbit_icons'


[*]Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
[*]Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
[*]Zend_Db_Adapter_Abstract->query() in Audentio/Credit/Shop/Listener/Install/1000301.php at line 22
[*]Audentio_Credit_Shop_Listener_Install_1000301::run() in Audentio/Credit/Shop/Listener/Install.php at line 28
[*]Audentio_Credit_Shop_Listener_Install::run()
[*]call_user_func() in XenForo/Model/AddOn.php at line 215
[*]XenForo_Model_AddOn->installAddOnXml() in Waindigo/CustomFields/Extend/XenForo/Model/AddOn.php at line 114
[*]Waindigo_CustomFields_Extend_XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
[*]XenForo_Model_AddOn->installAddOnXmlFromFile() in AddOnInstaller/ControllerAdmin/AddOn.php at line 36
[*]AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 347
[*]XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
[*]XenForo_FrontController->run() in /var/www/censored.com/admin.php at line 13

I've fixed the uninstaller, and the issues you have pointed out. The queries you can run to fix this are:

ALTER TABLE `xf_user` DROP `adcredit_shop_postbit_icons`;
ALTER TABLE `xf_user` DROP `adcredit_shop_profile_icons`;
 
updated.. now in the inventory tab on member profile errors..

PHP:
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'product.display_on_profile_inventory' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Mike, 5 minutes ago
Stack Trace

#0 /home/xxxx/public_html/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('\n\t\t\tSELECT purc...')
#1 /home/xxxx/public_html/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '\n\t\t\tSELECT purc...')
#2 /home/xxxx/public_html/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('\n\t\t\tSELECT purc...')
#3 /home/xxxx/public_html/library/XenForo/Model.php(219): Zend_Db_Adapter_Abstract->query('\n\t\t\tSELECT purc...', 5, 2)
#4 /home/xxxx/public_html/library/Audentio/Credit/Shop/Model/ProductPurchase.php(43): XenForo_Model->fetchAllKeyed('\n\t\t\tSELECT purc...', 'purchase_id', 5)
#5 /home/xxxx/public_html/library/Audentio/Credit/Shop/ControllerPublic/Member.php(9): Audentio_Credit_Shop_Model_ProductPurchase->getActiveProductPurchasesForUser(5, Array)
#6 /home/xxxx/public_html/library/XenForo/FrontController.php(347): Audentio_Credit_Shop_ControllerPublic_Member->actionInventory()
#7 /home/xxxx/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/xxxx/public_html/index.php(13): XenForo_FrontController->run()
#9 {main}

Request State

array(3) {
  ["url"] => string(213) "https://xxxxxx/members/xxx-xxx.5/inventory?_xfRequestUri=%2Fmembers%2Fxxxxx-xxxx.5%2F&_xfNoRedirect=1&_xfToken=4%2C1427394065%2C6f56906a3cb8b9680f916e5f91e97d5159e5aa72&_xfResponseType=json"
  ["_GET"] => array(4) {
  ["_xfRequestUri"] => string(26) "/members/xxx-xxxx.5/"
  ["_xfNoRedirect"] => string(1) "1"
  ["_xfToken"] => string(53) "4,1427394065,6f56906a3cb8b9680f916e5f91e97d5159e5aa72"
  ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
Err... so I can't remember, if we got both Patch 1 and Patch 2 in email, are we supposed to apply both of them, or just Patch 2?
 
Err... so I can't remember, if we got both Patch 1 and Patch 2 in email, are we supposed to apply both of them, or just Patch 2?


I ran both because I installed patch 1 before patch 2 was mailed out. I would think patch 2 would include all the changes from patch 1 within it.
 
Well, either way, I'm getting this error isntalling Patch 2 for 1.0.4. Are the install/uninstall routines all screwed up?

Code:
Mysqli statement execute error : Duplicate column name 'display_on_profile_inventory'

[LIST=1]
[*]Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
[*]Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
[*]Zend_Db_Adapter_Abstract->query() in Audentio/Credit/Shop/Listener/Install/1000472.php at line 14
[*]Audentio_Credit_Shop_Listener_Install_1000472::run() in Audentio/Credit/Shop/Listener/Install.php at line 29
[*]Audentio_Credit_Shop_Listener_Install::run()
[*]call_user_func() in XenForo/Model/AddOn.php at line 215
[*]XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
[*]XenForo_Model_AddOn->installAddOnXmlFromFile() in AddOnInstaller/ControllerAdmin/AddOn.php at line 272
[*]AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 347
[*]XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
[*]XenForo_FrontController->run() in /xxxxx/admin.php at line 13
[/LIST]

Should I delete that column, and try reinstalling?
 
Is there a way to have a message sent to a specified user (or users) when an item has been purchased? It would be very helpful in some cases or have an option within products that you can check to have x user notified that user x purchase x product?
 
Error log is being spammed a lot, no threads can be viewed.

Code:
ErrorException: array_key_exists() expects parameter 2 to be array, boolean given - library/Audentio/Credit/Shop/ViewPublic/Thread/View.php:16
Generated By: Unknown Account, A moment ago

Code:
#0 [internal function]: XenForo_Application::handlePhpError(2, 'array_key_exist...', '/var/www/vhosts...', 16, Array)
#1 /var/www/vhosts/wweforums.net/httpdocs/library/Audentio/Credit/Shop/ViewPublic/Thread/View.php(16): array_key_exists('icons', false)
#2 /var/www/vhosts/wweforums.net/httpdocs/library/Tinhte/XenTag/XenForo/ViewPublic/Thread/View.php(7): Audentio_Credit_Shop_ViewPublic_Thread_View->renderHtml()
#3 /var/www/vhosts/wweforums.net/httpdocs/library/Nobita/QuickReplyGuest/XenForo/ViewPublic/Thread/View.php(25): Tinhte_XenTag_XenForo_ViewPublic_Thread_View->renderHtml()
#4 /var/www/vhosts/wweforums.net/httpdocs/library/Audentio/Credit/Core/ViewPublic/Thread/View.php(6): Nobita\QuickReplyGuest\XenForo\ViewPublic\Thread\View->renderHtml()
#5 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ViewRenderer/Abstract.php(227): Audentio_Credit_Core_ViewPublic_Thread_View->renderHtml()
#6 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ViewRenderer/HtmlPublic.php(71): XenForo_ViewRenderer_Abstract->renderViewObject('XenForo_ViewPub...', 'Html', Array, 'thread_view')
#7 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(586): XenForo_ViewRenderer_HtmlPublic->renderView('XenForo_ViewPub...', Array, 'thread_view', NULL)
#8 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#9 /var/www/vhosts/wweforums.net/httpdocs/index.php(13): XenForo_FrontController->run()
#10 {main}
 
Getting too many site errors, some people can't post as they get an error doing so, members complaining about bug I reported yesterday in profiles... Each patch sadly just results in more bugs and errors. Hopefully bugs get resolved soon, but for now, uninstalled and using ******* credits again :(
 
Nobody can register either:

Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Field 'adcredit_shop_postbit_icons' doesn't have a default value - library/Zend/Db/Statement/Mysqli.php:214
Generated By: Unknown Account, 2 minutes ago

Code:
#0 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#3 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/DataWriter.php(1624): Zend_Db_Adapter_Abstract->insert('xf_user', Array)
#4 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/DataWriter.php(1613): XenForo_DataWriter->_insert()
#5 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/DataWriter.php(1405): XenForo_DataWriter->_save()
#6 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ControllerPublic/Register.php(416): XenForo_DataWriter->save()
#7 /var/www/vhosts/wweforums.net/httpdocs/library/UserEss/ControllerPublic/Register.php(68): XenForo_ControllerPublic_Register->actionRegister()
#8 /var/www/vhosts/wweforums.net/httpdocs/library/Andy/NewUserConversation/ControllerPublic/Register.php(16): UserEss_ControllerPublic_Register->actionRegister()
#9 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(347): Andy_NewUserConversation_ControllerPublic_Register->actionRegister()
#10 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /var/www/vhosts/wweforums.net/httpdocs/index.php(13): XenForo_FrontController->run()
#12 {main}
 
Top Bottom