תוסף דפי נחיתה ✈️

Thank You Angus for quick response and fix. How do we update the plugin to get the latest fix.

Currently, I see Landing plugin.
The image shows an interface element allowing the user to add landing pages to discover more about Papolo Cabscourse with a current score of 0.4. (Captioned by AI)

Pls do help us how do we navigate to get the update plugin .

לייק 1

Hey Steve, if you’re hosted by a hosting provider, reach out to your provider. If you’re self hosted update the plugin by going to /admin/update or by rebuilding your instance.

לייק 1

Thanks Angus as it is self hosted..we will rebuild app and keep you posted on the fix.

2 לייקים

Just a full
./launcher rebuild app
did the trick for me! It’s fixed here! (<- Example of our landingpages)

2 לייקים

Yes..it worked for us. Thanks for solution and quick turn around.

2 לייקים

Hi,
I’m having trouble with the Landing Pages Plugin on my site. The plugin isn’t working as expected. It’s causing layout issues and not displaying content properly.

Has anyone else experienced this? Any tips or fixes for this problem would be really helpful!

Can you share the link to a page on your community that shows this issue and/or some screenshots?

האם אוכל לחפש דף נחיתה (כותרת או תוכן) בפורום הזה?

לייק 1

אני יוצר דף באמצעות תוסף דף נחיתה, ויש לו גם JS. האם יש מקום בו עלי למקם את קובץ ה-JS, או שעלי פשוט למקם אותו באותו דף תוסף? אבל זה לא עובד ככה, נכון?

היי, האם תוכל לשלוח את הקובץ שאתה מנסה להוסיף?

קבצי ה-JS יצטרכו להיות ממוקמים בספרייה assets/javascripts/discourse. אבל באיזו תת-ספרייה בדיוק בתוך זה, יהיה תלוי בקובץ.

אולי כדאי לשאול את זה בנושא הפלאגין עצמו, לא כנושא נפרד.

לייק 1

I wrote the Home Pages extension to Landing Pages. This allows you to have some pages rendered using Ember Glimmer components. If you can package your JS that way it’s an option.

See Landing Pages Plugin 🛩 - #95 by merefield

לייק 1

לאחר עדכון Discourse, דף הנחיתה לא עובד כראוי… הוא לא שומר על סגנון ה-HTML+CSS שהוגדר.. מישהו נתקל בבעיה דומה?

האם זה אומר שאני יכול להוסיף js מותאם אישית לדפים?

אם אתה אורז אותם כרכיבי Ember, כן

אז אני צריך שיהיה לי גם תוסף לדף הבית וגם תוסף לדף נחיתה לאותו הדבר?

כן אכן

Hi, great plugin, I love the ability to list all published topics on 1 page for non logged in user, thanks a lot.

May I ask if the form landing page has a protection against spam/flood in the backend any kind?
This is a nice FOSS project by the way :

לייק 1

In a freshly updated site (on tests-passed), the Import of a zipped HTML document seems to be broken at the moment. I’m talking about this:

The same page works fine when pasted directly, or via a repository.

Lots of depreciation notices in the console, but nothing actively broken there. However, in /logs:

image

Full backtrace

Message (6 copies reported)

Required plugin ‘landing_pages’ not found

Backtrace

activesupport-8.0.2.1/lib/active_support/broadcast_logger.rb:130:in `block in warn'
activesupport-8.0.2.1/lib/active_support/broadcast_logger.rb:231:in `block in dispatch'
activesupport-8.0.2.1/lib/active_support/broadcast_logger.rb:231:in `each'
activesupport-8.0.2.1/lib/active_support/broadcast_logger.rb:231:in `dispatch'
activesupport-8.0.2.1/lib/active_support/broadcast_logger.rb:130:in `warn'
/var/www/discourse/app/controllers/application_controller.rb:363:in `block in requires_plugin'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:406:in `instance_exec'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:406:in `block in make_lambda'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:178:in `block in call'
actionpack-8.0.2.1/lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:179:in `call'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:559:in `block in invoke_before'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:559:in `each'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:559:in `invoke_before'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/var/www/discourse/app/controllers/application_controller.rb:429:in `block in with_resolved_locale'
i18n-1.14.7/lib/i18n.rb:353:in `with_locale'
/var/www/discourse/app/controllers/application_controller.rb:429:in `with_resolved_locale'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:129:in `block in run_callbacks'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:140:in `run_callbacks'
actionpack-8.0.2.1/lib/abstract_controller/callbacks.rb:260:in `process_action'
actionpack-8.0.2.1/lib/action_controller/metal/rescue.rb:27:in `process_action'
actionpack-8.0.2.1/lib/action_controller/metal/instrumentation.rb:76:in `block in process_action'
activesupport-8.0.2.1/lib/active_support/notifications.rb:210:in `block in instrument'
activesupport-8.0.2.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
activesupport-8.0.2.1/lib/active_support/notifications.rb:210:in `instrument'
actionpack-8.0.2.1/lib/action_controller/metal/instrumentation.rb:75:in `process_action'
actionpack-8.0.2.1/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
activerecord-8.0.2.1/lib/active_record/railties/controller_runtime.rb:39:in `process_action'
actionpack-8.0.2.1/lib/abstract_controller/base.rb:163:in `process'
actionview-8.0.2.1/lib/action_view/rendering.rb:40:in `process'
rack-mini-profiler-4.0.1/lib/mini_profiler/profiling_methods.rb:90:in `block in profile_method'
actionpack-8.0.2.1/lib/action_controller/metal.rb:252:in `dispatch'
actionpack-8.0.2.1/lib/action_controller/metal.rb:335:in `dispatch'
actionpack-8.0.2.1/lib/action_dispatch/routing/route_set.rb:67:in `dispatch'
actionpack-8.0.2.1/lib/action_dispatch/routing/route_set.rb:50:in `serve'
actionpack-8.0.2.1/lib/action_dispatch/routing/mapper.rb:32:in `block in <class:Constraints>'
actionpack-8.0.2.1/lib/action_dispatch/routing/mapper.rb:62:in `serve'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:53:in `block in serve'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:133:in `block in find_routes'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:126:in `each'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:126:in `find_routes'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:34:in `serve'
actionpack-8.0.2.1/lib/action_dispatch/routing/route_set.rb:908:in `call'
railties-8.0.2.1/lib/rails/engine.rb:535:in `call'
railties-8.0.2.1/lib/rails/railtie.rb:226:in `public_send'
railties-8.0.2.1/lib/rails/railtie.rb:226:in `method_missing'
actionpack-8.0.2.1/lib/action_dispatch/routing/mapper.rb:33:in `block in <class:Constraints>'
actionpack-8.0.2.1/lib/action_dispatch/routing/mapper.rb:62:in `serve'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:53:in `block in serve'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:133:in `block in find_routes'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:126:in `each'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:126:in `find_routes'
actionpack-8.0.2.1/lib/action_dispatch/journey/router.rb:34:in `serve'
actionpack-8.0.2.1/lib/action_dispatch/routing/route_set.rb:908:in `call'
/var/www/discourse/lib/middleware/omniauth_bypass_middleware.rb:35:in `call'
/var/www/discourse/lib/middleware/crawler_hooks.rb:11:in `call'
rack-2.2.17/lib/rack/tempfile_reaper.rb:15:in `call'
rack-2.2.17/lib/rack/conditional_get.rb:40:in `call'
rack-2.2.17/lib/rack/head.rb:12:in `call'
actionpack-8.0.2.1/lib/action_dispatch/http/permissions_policy.rb:38:in `call'
/var/www/discourse/lib/content_security_policy/middleware.rb:12:in `call'
/var/www/discourse/lib/middleware/anonymous_cache.rb:415:in `call'
/var/www/discourse/lib/middleware/csp_script_nonce_injector.rb:12:in `call'
/var/www/discourse/config/initializers/008-rack-cors.rb:14:in `call'
rack-2.2.17/lib/rack/session/abstract/id.rb:266:in `context'
rack-2.2.17/lib/rack/session/abstract/id.rb:260:in `call'
actionpack-8.0.2.1/lib/action_dispatch/middleware/cookies.rb:706:in `call'
actionpack-8.0.2.1/lib/action_dispatch/middleware/callbacks.rb:31:in `block in call'
activesupport-8.0.2.1/lib/active_support/callbacks.rb:100:in `run_callbacks'
actionpack-8.0.2.1/lib/action_dispatch/middleware/callbacks.rb:30:in `call'
actionpack-8.0.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:31:in `call'
actionpack-8.0.2.1/lib/action_dispatch/middleware/show_exceptions.rb:32:in `call'
logster-2.20.1/lib/logster/middleware/reporter.rb:40:in `call'
/var/www/discourse/lib/middleware/default_headers.rb:13:in `call'
railties-8.0.2.1/lib/rails/rack/logger.rb:41:in `call_app'
railties-8.0.2.1/lib/rails/rack/logger.rb:29:in `call'
/var/www/discourse/config/initializers/100-quiet_logger.rb:20:in `call'
/var/www/discourse/config/initializers/100-silence_logger.rb:29:in `call'
actionpack-8.0.2.1/lib/action_dispatch/middleware/request_id.rb:34:in `call'
/var/www/discourse/lib/middleware/enforce_hostname.rb:23:in `call'
rack-2.2.17/lib/rack/method_override.rb:24:in `call'
actionpack-8.0.2.1/lib/action_dispatch/middleware/executor.rb:16:in `call'
rack-2.2.17/lib/rack/sendfile.rb:110:in `call'
rack-mini-profiler-4.0.1/lib/mini_profiler.rb:191:in `call'
/var/www/discourse/lib/middleware/processing_request.rb:12:in `call'
message_bus-4.4.1/lib/message_bus/rack/middleware.rb:60:in `call'
/var/www/discourse/lib/middleware/request_tracker.rb:410:in `call'
actionpack-8.0.2.1/lib/action_dispatch/middleware/remote_ip.rb:96:in `call'
railties-8.0.2.1/lib/rails/engine.rb:535:in `call'
railties-8.0.2.1/lib/rails/railtie.rb:226:in `public_send'
railties-8.0.2.1/lib/rails/railtie.rb:226:in `method_missing'
rack-2.2.17/lib/rack/urlmap.rb:74:in `block in call'
rack-2.2.17/lib/rack/urlmap.rb:58:in `each'
rack-2.2.17/lib/rack/urlmap.rb:58:in `call'
unicorn-6.1.0/lib/unicorn/http_server.rb:634:in `process_client'
unicorn-6.1.0/lib/unicorn/http_server.rb:739:in `worker_loop'
unicorn-6.1.0/lib/unicorn/http_server.rb:547:in `spawn_missing_workers'
unicorn-6.1.0/lib/unicorn/http_server.rb:143:in `start'
unicorn-6.1.0/bin/unicorn:128:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/bin/unicorn:25:in `load'
/var/www/discourse/vendor/bundle/ruby/3.3.0/bin/unicorn:25:in `<main>'

Env

HTTP HOSTS: spokes.nz`
לייק 1

מצאתי גם את הבעיה הזו.

יש לי בעיה מתמשכת עם תוסף ה-Landing Pages שבו גם ייבוא Git וגם ייבוא ZIP נכשלים בשקט. ממשק הניהול מציג הודעת הצלחה ירוקה לאחר משיכה/ייבוא, אך לא נוצרים דפים או שדפים מופיעים ברשימה הנפתחת “בחר דף”.

אישרתי שהבעיה אינה שגיאת תצורה של המשתמש. יומן השרת מציג את הודעת השגיאה הפרדוקסלית הבאה כאשר הייבוא מופעל:

Started GET "/landing/remote/pages" for ...
Processing by LandingPages::RemotesController#import as JSON
Required plugin 'landing_pages' not found
Required plugin 'landing_pages' not found
Completed 200 OK in ...

שגיאה זו מתרחשת למרות שהבקשה מטופלת על ידי בקר התוסף עצמו.

צעדי פתרון בעיות שננקטו:

  • אישרתי שהמאגר ציבורי וכתובת ה-HTTPS נכונה.
  • אימתתי את תחביר pages.json וניסיתי גם מבנה גלובלי וגם מבנה לכל דף (welcome/page.json).
  • יצירת דף ידנית בממשק הניהול עובדת בצורה מושלמת. זה מוכיח שהליבה של התוסף פועלת, והבעיה מבודדת למייבא.
  • ביצעתי הסרה מלאה, בנייה מחדש, התקנה מחדש ובנייה מחדש של תוסף ה-Pavilion הרשמי כדי להבטיח מצב נקי.
  • client_max_body_size של השרת הוגדל והאפליקציה נבנתה מחדש.

השגיאה נמשכת לאחר כל הצעדים הללו. נראה שזו בעיה עמוקה יותר בפונקציית הייבוא.

לייק 1

תודה בריאןC - לא באמת בדקתי את ייבוא ה-Git במלואם.
נהדר שזה מנוסח בבירור!