-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MediaCloud Plugin overrides Illuminate collapse() function #15
Comments
hmm strange. is it throwing an error? |
No explicit error, but when MediaPress is disabled everything works awesome. When it's enabled I did a var_dump on the collection chained methods and collapse returns an empty array rather than the proper response of the post types. The method from MediaPress is slightly different so that's where my assumption lies with their class. So technically it's a soft failure. Also this is a brand new Sage 10 project and MediaPress is currently the only plugin other than ACF. |
Confirmed the issue. Will try to push a fix tonight. |
That's amazing! Looking forward to seeing how you resolved it and thanks a ton for providing a fix. |
Going to test tonight the newest version 4.2.5 as it looks like a lot updated from MediaPress. Will let you know if the issue still persists. |
Tested with 4.2.5. Still have the same issue unfortunately. |
yeah. annoyingly they are autoloading its likely for inconsistencies like this to show up elsewhere down the road unless they were to fix registering their custom |
Gotcha. Anything I can do to help? |
If you have time to burn, feel free to try that PR so far. I will have to swing back around to it tonight – I honestly can't remember where I left off. :( |
Sounds good, I'll fork it and see what I come up with in the next day or two. |
* BREAKINGCHANGE(config): Rename menu to adminMenu * BREAKINGCHANGE(config): Rename `categories` to `blockCategories` * BREAKINGCHANGE(anchors): Anchors have been deprecated from Poet. If you happen to use them and see this, hit me up – I wouldn't mind whipping up a separate package. * enhance(poet): Split Poet into modules (Fixes #10) * enhance(poet): Refactor and improve code of project * chore(deps): Bump dependencies * enhance(poet): Move Collection into a trait to avoid using the global `collect()` function (Fixes #15) * enhance(admin-menu): Rewrite Admin Menu module to not use `$GLOBALS` * enhance(admin-menu): Allow configuring the admin page slug when moving admin menu items * chore(ci): Move to GitHub actions
Reaching out as I'm not sure how to solve this one. MediaCloud's (https://mediacloud.press/) uses similar Illuminate classes that define the collapse() method and it seems to be overriding Poet's use of collapse() directly from the Illuminate vendor. I've reached out to MediaPress to see if this is something they can resolve, but haven't heard back. I was curious if this is something that is a scoping issue or similar. I've actually never run into this before.
Of course, I'm happy to help resolve, test, etc., but this is a bit out of my comfort zone on where a solution might be. Appreciate your work and really want to give Poet a try!
The text was updated successfully, but these errors were encountered: