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: Getting PHP error: ‘array_keys() expects parameter 1 to be array, boolean given’ in ‘publisher/ext.p
Status | Resolved |
Add-on / Version | Publisher 1.6.8 |
Severity | |
EE Version | 2.8.1 |
snalte r
Dec 22, 2015Description:
I get this PHP-error when using a channel-entries-tag on a template:
A PHP Error was encountered
Severity: Warning
Message: array_keys() expects parameter 1 to be array, boolean given
Filename: publisher/ext.publisher.php
Line Number: 645
A PHP Error was encountered
Severity: Warning
Message: array_intersect(): Argument #2 is not an array
Filename: publisher/ext.publisher.php
Line Number: 645
Detailed steps to reproduce the issue:
1. I’ve installed Publisher on a existing website, it seems to work for all channels, except one.
2. I have an ‘overview page’ where I show all these entries, no problems.
3. On the detailpage I suddenly get this php error when I use the {exp:channel:entries}. Even when I use the exact same channel-entries-tag. I think it has something to do with the URL or something, but I’m not sure how this works.
The url I’m using is build op like this: {site_url}news/{url_title}. Any ideas why this php-error comes up and what I can do about it?
The whole exp:channel:entries doesn’t seems to work either btw, there is no output whatsoever.
The site is local, so I can’t send you the url.
Thanks in advance.
snalte r
I’m also getting the same error when using:
But then the title does show.
snalte r
Ok,
I’m terribly sorry and a bit embarrassed, but this error might be caused because I forgot to close the channel-entry-tag properly.. Totally missed that. I’m showing the entry correctly now without the PHP-error.
BoldMinded (Brian)
Comment has been marked private.
Dennis Gandasoebrata
Hi Brian,
I have the same issue as Snalter when showing search results:
I tried the build you provided, but this does only show a white screen and all links are ‘broken’.
using EE 2.10.1 Publisher 1.6.9
Best regards, Stan Bluijs
BoldMinded (Brian)
What do you mean broken? I need more information. Did you turn up debugging so te white screen shows an error? https://boldminded.com/white-screen
BoldMinded (Brian)
Comment has been marked private.
Dennis Gandasoebrata
Hi Brian,
Followed the white-screen instructions, but still no errors. Also cleared all cache. The following line of code has as only output the root_url the rest is empty:
Best regards, Stan
BoldMinded (Brian)
Regarding the white screen, I can’t really assist with that until an error message is revealed. If it isn’t a PHP error, then it could be htaccess, template or some other server related error.
Did you try removing show=”1”?
Dennis Gandasoebrata
Removing show=”1” does not change anything. It looks like that {exp:publisher:languages} does not return anything. {publisher:current_language_code} does work and returns the correct current language code.
Is there anything I can try or test to give you more information about the problem?
BoldMinded (Brian)
Inspect the output. Do you see this message? “No phrase translations found for the current language.” e.g. did you enter translated values in your phrases for each language?
Dennis Gandasoebrata
The site is working correctly with the build you provided in this issue https://boldminded.com/support/ticket/1235 The build that you provide in this ticket is causing the problems discribed above. I just found this ticket: https://boldminded.com/support/ticket/1240 I will try this fix for my problem.
Dennis Gandasoebrata
Hi Brain,
https://boldminded.com/support/ticket/1240 solved my issue
Best regards