bolt / core

🧿 Bolt 5 core
https://boltcms.io
MIT License
543 stars 158 forks source link

External Video Doesn't Display in Repeater when Viewing Entry #2176

Closed GitHubinat0r closed 3 years ago

GitHubinat0r commented 3 years ago

'external: type: video' doesn't appear to work in a repeater with the latest updated version of Bolt for a regular user.

Details

Question Answer
Relevant Bolt Version 4.1
Install type Composer Install
BC Break ???
PHP version 7.3
Web server Nginx 1.18.0
For UX/UI issues Chrome 84.0.4147.135 (Official Build) / Firefox 83.0 (64-bit)

Reproduction

If you're filing a bug, please describe how to reproduce it. Include as much relevant information as possible, such as:

Bug summary

Adding "external: type: video" to a repeater works for an administrator, but not the end user.

Specifics

* What method did you use to install Bolt'

Composer.

* Please include *full error messages* and *screenshots* if possible

I don't believe the below debug log reveals anything, but here it is.

[2020-11-26 16:34:17] bolt.INFO: > GET /entry/the-hall [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\EventListener\ConfigListener::onRequestEarly". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\Session\SessionListener::onRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\EventListener\FlashLoggerListener::onRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\Profiler\DebugToolbarEnabler::onRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\Configuration\ConfigurationValueProxy::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\Configuration\ConfigurationValueProxy::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\EventListener\ConfigListener::onRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\EventListener\StorageEventListener::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\EventListener\ZoneGuesser::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\Routing\Canonical::onRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Silex\EventListener\LocaleListener::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "closure". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Silex\EventListener\LogListener::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\EventListener\ProfilerListener::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\EventListener\PagerListener::onRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\ConfigurationNotices\EventListener\ConfigurationNoticesListener::onKernelRequest". [ [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Silex\EventListener\MiddlewareListener::onKernelRequest". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.request" to listener "Bolt\EventListener\FlashLoggerListener::onEvent". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.controller" to listener "Silex\EventListener\ConverterListener::onKernelController". [] [] [2020-11-26 16:34:17] bolt.DEBUG: Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". [2020-11-26 16:34:17] logger.system.ERROR: Invalid menu path (ministries/1) set in menu.yml. Does not match any configured ContentTypes or routes. {"event":"config"} []

Steps to reproduce

Update app/config/contenttypes.yml for repeater to include: "external: type: video"

repeater: type: repeater group: repeater label: Simple repeater icon: fa:repeat limit: 100 prefix: "

This allows you to create multiple sets of fields. Use the add button at the bottom to create a new empty set.

" fields: title: type: text speaker: type: text presented: type: datetime label: Presented default: "2000-01-01" variant: inline content: type: text audio: type: file extensions: [mp3] upload: vids video: type: file extensions: [mp4] upload: vids external: type: video

relations:
    pages:
      multiple: false
      order: title
      label: Select a page
taxonomy: [ categories, tags ]
record_template: entry.twig
listing_template: listing.twig
listing_records: 10
default_status: published
sort: -datepublish
recordsperpage: 20

Expected result

Adding an external video as an administrator works.

External video being visible to the end user.

Actual result

Adding an external video as an administrator works.

External video is missing to the end user.

bobdenotter commented 3 years ago

You managed to delete the issue template that we made to facilitate providing relevant info.. But, when you're saying "latest updated version of Bolt", I assume you're referring to version 3, not 4.1, right?

GitHubinat0r commented 3 years ago

Sorry about that. It didn't originally populate or I stupidly copied over it. Regardless, I updated my report to include the template. And to answer your question directly, yes, 4.1.

bobdenotter commented 3 years ago

Bolt 4.1 doesn't have repeater fields. Are you sure that shouldn't be type: collection?

GitHubinat0r commented 3 years ago

I have found several issues with my installation and did a complete reinstall. I'll be digging into collections following. Thanks for setting me straight. :+1: