• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed Create Series - error

Status
Not open for further replies.

Hoib3rgA

New Member
Showcase
Hy,
when i try to create a serie, i get the following error:
Code:
Error: Call to undefined method XenAddons\Showcase\XF\Entity\User::canCreateImsSeries() in src/addons/XenAddons/Showcase/Pub/Controller/Series.php at line 119

    XenAddons\Showcase\Pub\Controller\Series->actionCreateSeries() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2483
    XF\App->run() in src/XF.php at line 524
    XF::runApp() in index.php at line 20

Code:
array(4) {
  ["url"] => string(40) "/index.php?showcase/series/create-series"
  ["referrer"] => string(54) "https://www.zafira-forum.de/index.php?showcase/series/"
  ["_GET"] => array(1) {
    ["showcase/series/create-series"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

kr Chris
 
Last edited:
Hello Bob,
sorry for posting again, but the updte creates a new error by creating a series:

XenForo Version String: XenForo 2.2.12

Addon Version String: Showcase 3.2.27

Can you reproduce it here? No (I don't have permission to create series)

Must be able to reproduce on the Default XenForo Style. Yes

Stack Trace:

Frontend:
Code:
Error: Call to undefined method XenAddons\Showcase\XF\Entity\User::hasAmsSeriesPermission() in src/addons/XenAddons/Showcase/Entity/SeriesItem.php at line 512

    XenAddons\Showcase\Entity\SeriesItem->hasPermission() in src/addons/XenAddons/Showcase/Entity/SeriesItem.php at line 158
    XenAddons\Showcase\Entity\SeriesItem->canUploadAndManageSeriesAttachments() in src/addons/XenAddons/Showcase/Pub/Controller/Series.php at line 154
    XenAddons\Showcase\Pub\Controller\Series->actionCreateSeries() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2483
    XF\App->run() in src/XF.php at line 524
    XF::runApp() in index.php at line 20

Admin CP:
  • ->Error: Call to undefined method XenAddons\Showcase\XF\Entity\User::hasAmsSeriesPermission()src/addons/XenAddons/Showcase/Entity/SeriesItem.php:512
StackTrace:
Code:
#0 src/addons/XenAddons/Showcase/Entity/SeriesItem.php(158): XenAddons\Showcase\Entity\SeriesItem->hasPermission('uploadSeriesAtt...')
#1 src/addons/XenAddons/Showcase/Pub/Controller/Series.php(154): XenAddons\Showcase\Entity\SeriesItem->canUploadAndManageSeriesAttachments()
#2 src/XF/Mvc/Dispatcher.php(352): XenAddons\Showcase\Pub\Controller\Series->actionCreateSeries(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XenAddons\\Showc...', 'CreateSeries', Object(XF\Mvc\RouteMatch), Object(XenAddons\Showcase\Pub\Controller\Series), NULL)
#4 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenAddons\Showcase\Pub\Controller\Series), NULL)
#5 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#7 src/XF.php(524): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}

php array:

Code:
array(4) {
  ["url"] => string(40) "/index.php?showcase/series/create-series"
  ["referrer"] => string(54) "https://www.zafira-forum.de/index.php?showcase/series/"
  ["_GET"] => array(1) {
    ["showcase/series/create-series"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 

Attachments

  • Showcase3.2.27.jpg
    Showcase3.2.27.jpg
    106.6 KB · Views: 1
  • Like
Reactions: Bob
sorry for posting again,
No worries, thank you for finding it, I would not have found it due to having AMS and IMS both installed on the same development instance as Showcase.

but the updte creates a new error
No, it did not create a NEW error, it just exposed another similar issue (calling an AMS permission instead of a Showcase permission).

I've updated the SC 3.2.27 package in the store. You will need to download the new package and update the Add-on again :)
 
Status
Not open for further replies.
Back
Top