Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Diff settings PHP errors
Status | Resolved |
Add-on / Version | Publisher Lite 2.7.3 |
Severity | |
EE Version | 4.0.3 |
Rob Allen
Jan 03, 2018Just installed Publisher Lite and got errors when accessing Diff settings page
Addons installed
———-
EE4.0.3
Publisher 2.7.3
Structure 4.3.1
Calendar 3.0.1
The errors
———-
Exception Caught
Unknown field ChannelField.group_id
ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php:709
Stack Trace: Please include when reporting this error
#0 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(520): EllisLab\ExpressionEngine\Service\Model\Query\Select->translateProperty(‘group_id’)
#1 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(134): EllisLab\ExpressionEngine\Service\Model\Query\Select->applyOrders(Object(EllisLab\ExpressionEngine\Service\Database\Query), Array)
#2 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(46): EllisLab\ExpressionEngine\Service\Model\Query\Select->buildQuery()
#3 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(281): EllisLab\ExpressionEngine\Service\Model\Query\Select->run()
#4 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(227): EllisLab\ExpressionEngine\Service\Model\DataStore->runQuery(‘Select’, Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))
#5 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(143): EllisLab\ExpressionEngine\Service\Model\DataStore->selectQuery(Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))
#6 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(62): EllisLab\ExpressionEngine\Service\Model\Query\Builder->fetch()
#7 user/addons/publisher/Controllers/General/Diff.php(232): EllisLab\ExpressionEngine\Service\Model\Query\Builder->all()
#8 user/addons/publisher/Controllers/General/Diff.php(162): BoldMinded\Publisher\Controllers\General\Diff->getGridRow()
#9 user/addons/publisher/Controllers/General/Diff.php(58): BoldMinded\Publisher\Controllers\General\Diff->getFieldSettings()
#10 user/addons/publisher/mcp.publisher.php(141): BoldMinded\Publisher\Controllers\General\Diff->render(‘general/diff’)
#11 user/addons/publisher/mcp.publisher.php(84): Publisher_mcp->runController()
#12 [internal function]: Publisher_mcp->general(‘diff’)
#13 ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(1600): call_user_func_array(Array, Array)
#14 ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(884): EllisLab\ExpressionEngine\Controller\Addons\Addons->getModuleSettings(‘publisher’, ‘general’, Array)
#15 [internal function]: EllisLab\ExpressionEngine\Controller\Addons\Addons->settings(‘publisher’, ‘general’, ‘diff’)
#16 ee/EllisLab/ExpressionEngine/Core/Core.php(229): call_user_func_array(Array, Array)
#17 ee/EllisLab/ExpressionEngine/Core/Core.php(109): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#18 ee/EllisLab/ExpressionEngine/Boot/boot.php(146): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
#19 index.php(151): require_once(’...’)
#19 index.php(151): require_once(’...’)
BoldMinded (Brian)
Thanks for the report. I’ll try to take a look at it this week.
Rob Allen
Thanks Brian, I had to uninstall Publisher for the time being as it was affecting the front end - we have a client meeting tomorrow so need EE working!
BoldMinded (Brian)
I can see the error happening in the CP Diff settings page, but I don’t see it happening on the front-end. How is it affecting your front-end? Can you provide more info on that? Error message maybe?
Rob Allen
Are you looking at our dev site or locally?
Rob Allen
Just reinstalled Publisher, front end errors I get
Exception Caught SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘m.url’ in ‘field list’: SELECT
ct
.*,t
.*,d
.*,channel_title
,c
.channel_name
,c
.channel_url
,c
.comment_url
,c
.comment_moderate
,c
.channel_html_formatting
,c
.channel_allow_img_urls
,c
.channel_auto_link_urls
,c
.comment_system_enabled
,username
,m
.email
,m
.url
,m
.screen_name
,m
.location
,m
.occupation
,m
.interests
,m
.aol_im
,m
.yahoo_im
,m
.msn_im
,m
.icq
,m
.signature
,m
.sig_img_filename
,m
.sig_img_width
,m
.sig_img_height
,m
.avatar_filename
,m
.avatar_width
,m
.avatar_height
,m
.photo_filename
,m
.photo_width
,m
.photo_height
,m
.group_id
,m
.member_id
,m
.bday_d
,m
.bday_m
,m
.bday_y
,m
.bio
,ct
.url_title
AS default_url_title,t
.title
AS title,t
.site_id
AS entry_site_id FROM (exp_publisher_titles
AS t) JOINexp_publisher_data
AS d ONt
.entry_id
=d
.entry_id
AND t.lang_id = d.lang_id AND t.status = d.status JOINexp_channel_titles
AS ct ONct
.entry_id
=t
.entry_id
JOINexp_channels
AS c ONc
.channel_id
=t
.channel_id
JOINexp_members
AS m ONm
.member_id
=t
.author_id
WHEREt
.status
= ‘open’ ANDt
.lang_id
= 1 ANDt
.entry_id
IN (2)ee/legacy/database/drivers/mysqli/mysqli_connection.php:116 Stack Trace: Please include when reporting this error
BoldMinded (Brian)
Comment has been marked private.
Rob Allen
Sadly no, though we have a few new error messages when accessing a Structure page
Notice Undefined offset: 1 user/addons/publisher/Service/ChannelField.php, line 262
Warning Invalid argument supplied for foreach() user/addons/publisher/Service/ChannelField.php, line 180
Notice Undefined offset: 1 user/addons/publisher/Service/ChannelField.php, line 262
Warning Invalid argument supplied for foreach() user/addons/publisher/Service/ChannelField.php, line 180
Notice Undefined offset: 1 user/addons/publisher/Service/ChannelField.php, line 262
Warning Invalid argument supplied for foreach() user/addons/publisher/Service/ChannelField.php, line 180
Notice Undefined offset: 1 user/addons/publisher/Service/ChannelField.php, line 262
Warning Invalid argument supplied for foreach() user/addons/publisher/Service/ChannelField.php, line 180
Warning Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:111) ee/EllisLab/ExpressionEngine/Boot/boot.common.php, line 487
Exception Caught SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘exp_channels.field_group’ in ‘field list’: SELECT
exp_publisher_titles
.title
,exp_publisher_titles
.url_title
,exp_publisher_data
.*,exp_channels
.field_group
,exp_channels
.channel_title
AS channel,exp_channels
.channel_name
AS channel_short_name FROM (exp_publisher_titles
) JOINexp_publisher_data
ONexp_publisher_data
.entry_id
=exp_publisher_titles
.entry_id
JOINexp_channels
ONexp_channels
.channel_id
=exp_publisher_titles
.channel_id
WHEREexp_publisher_titles
.entry_id
IN (‘13’, ‘15’, ‘65’, ‘2’, ‘20’, ‘14’) ANDexp_publisher_titles
.lang_id
= 1 ANDexp_publisher_titles
.status
= ‘open’ ANDexp_publisher_data
.lang_id
= 1 ANDexp_publisher_data
.status
= ‘open’ee/legacy/database/drivers/mysqli/mysqli_connection.php:116 Stack Trace: Please include when reporting this error
BoldMinded (Brian)
Have you created any custom fields yet? Are there custom fields assigned to the entry/channel you’re viewing?
Rob Allen
Yes custom fields existed before Publisher was installed, and yes custom fields are assigned to all channels - some use EE4 Field groups, but we’re not using Fluid fields..
BoldMinded (Brian)
In the legacy/libraries/hooks/Publisher_structure_hooks.php file at the very bottom is this function
Remove the line ->select(‘channels.field_group’) and see if that fixes it.
BoldMinded (Brian)
Actually, hold off on that change…
BoldMinded (Brian)
Comment has been marked private.
BoldMinded (Brian)
Comment has been marked private.
BoldMinded (Brian)
Comment has been marked private.
BoldMinded (Brian)
Comment has been marked private.
Rob Allen
Comment has been marked private.
Rob Allen
Comment has been marked private.
BoldMinded (Brian)
Are you sure the previews are enabled? Do you see any JS errors in your console?
Rob Allen
Comment has been marked private.
BoldMinded (Brian)
Rob, it could be any number of things and I can’t speculate what it is without seeing the CP. I do know that the previews work in my local environment, so its most likely a configuration issue.
BoldMinded (Brian)
I’m pretty sure this is fixed in the latest build (2.7.5). See next comment for the link. I’m going to close this ticket.
BoldMinded (Brian)
Comment has been marked private.