1. 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

Discussion in 'Showcase Resolved Bug Reports' started by Hoib3rgA, Apr 29, 2023.

Thread Status:
Not open for further replies.
  1. Hoib3rgA

    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: Apr 29, 2023
  2. Bob

    Bob Developer Staff Member

    Uhg... should have caught that!

    This has been resolved in SC 3.2.27 (which I will push out today).
     
    cdub and Hoib3rgA like this.
  3. Hoib3rgA

    Hoib3rgA New Member Showcase

    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) {
      }
    }
     

    Attached Files:

    Bob likes this.
  4. Bob

    Bob Developer Staff Member

    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.

    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 :)
     
    cdub and Hoib3rgA like this.
  5. Hoib3rgA

    Hoib3rgA New Member Showcase

    Thank you Bob,
    the resintall of the updated 3.2.27 fixed the bug.

    Thanks for your work!!!
     
    cdub and Bob like this.
  6. Bob

    Bob Developer Staff Member

    You are welcome :) Let me know if you run into any more bugs with the Series feature.
     
    cdub likes this.
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.