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: Two errors
Status | Resolved |
Add-on / Version | Publisher |
Severity | Blocker |
EE Version | 24 |
Aaron @ Emagine
Apr 17, 2013I am on publisher 0.98.6 and when I use the language switcher tags I get this url:
/domain/com/index.php/?ACT=20&site_id=1&lang_id=2
And then the following error
A PHP Error was encountered
Severity: Warning
Message: array_search() expects parameter 2 to be array, boolean given
Filename: models/publisher_site_pages.php
Line Number: 868
And nothing else happens
BoldMinded (Brian)
Hi Aaron. Do you feel comfortable modifying PHP? If so open up the models/publisher_site_pages.php file and make these two changes: https://www.evernote.com/shard/s9/sh/21b0c799-3d18-4459-b245-aa4a1375b0b6/acbac982d539d39f46c721a658487792
Let me know if that fixes you up.
Aaron @ Emagine
This has fixed the errors for me, I was wondering two things however, is there any js or jquery sample of the bar trigger in the docs? Also, I have got rid of index.php on all my directories, but the publisher language options pushes it back in. Any way to get rid of index.php or clear it from the redirects?
BoldMinded (Brian)
In your config file you’ll need to set site_index = ” to remove the index.php
Bar trigger? Not sure what you mean.
Aaron @ Emagine
got it, that did the trick, and sorry I was thinking and typing at the same time. I have used the links as buttons so it works fine.