[PLUGIN] Contact for Bludit 2

Jr. Bludit
Posts: 6
Joined: Mon Aug 14, 2017 2:36 pm

Tue Dec 26, 2017 9:55 pm

Hi Fred

where can I find your update of contact plugin for bludit2?
User avatar
Site Admin
Posts: 1034
Joined: Sun Aug 09, 2015 3:01 pm
Location: Zurich

Tue Dec 26, 2017 11:49 pm

I'm sorry, it's not yet ready. I hope I can do it in the next few days.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Jr. Bludit
Posts: 8
Joined: Wed Jan 03, 2018 9:45 am

Sat Jan 06, 2018 2:52 pm

Fatal error: Uncaught Error: Call to a member function title() on boolean in /home/sites/3b/6/690e20e02f/public_html/bl-plugins/contact/plugin.php:39 Stack trace: #0 /home/sites/3b/6/690e20e02f/public_html/bl-kernel/admin/views/configure-plugin.php(14): pluginContact->form() #1 /home/sites/3b/6/690e20e02f/public_html/bl-kernel/admin/themes/default/index.php(146): include('/home/sites/3b/...') #2 /home/sites/3b/6/690e20e02f/public_html/bl-kernel/boot/admin.php(86): include('/home/sites/3b/...') #3 /home/sites/3b/6/690e20e02f/public_html/index.php(34): require('/home/sites/3b/...') #4 {main} thrown in /home/sites/3b/6/690e20e02f/public_html/bl-plugins/contact/plugin.php on line 39
Jr. Bludit
Posts: 9
Joined: Fri Jan 26, 2018 11:32 pm

Wed Feb 07, 2018 8:35 pm

Using Bludit 2.2.1 so understand that it may not be compatible, but I thought I'd ask if this was an easy fix:
Fatal error: Call to a member function title() on boolean in /bl-plugins/contact/plugin.php on line 39
The plugin can be activated, but not configured.

If line 39, "$pageOptions[$pageKey] = $page->title();" is commented out, the config can be entered, but the list of pages does not show in the dropdown.
Many thanks in advance,
Jr. Bludit
Posts: 1
Joined: Mon Feb 19, 2018 4:45 pm

Mon Feb 19, 2018 4:48 pm

Replace line 36 in plugin.php with this:

Code: Select all

foreach($pages as $pageKey)
Post Reply