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: PHP error after adding a second language.
Status | Resolved |
Add-on / Version | Publisher |
Severity | Critical |
EE Version |
Ante Beljan
Jun 26, 2013Hello Brian,
this is my first time installing Publisher, and I am fairly new to EE, so I am hoping there will be a simple solution for this.
My site is in Croatian so I changed the long/short names as described in the installation guide. After this, I added a second language which caused the errors pasted below to appear. Deleting the second language removes the errors.
Relevant info:
Assets v.2.1.3.
Matrix v.2.4.1.
Zoo Visitor v.1.3.26
PHP v.5.2.17
Publisher was installed after Assets/Matrix and I did the update of P&T add-ons in the settings tab.
——————————————
A PHP Error was encountered
Severity: Warning
Message: in_array() [function.in-array]: Wrong datatype for second argument
Filename: models/publisher_model.php
Line Number: 156
A PHP Error was encountered
Severity: Warning
Message: in_array() [function.in-array]: Wrong datatype for second argument
Filename: models/publisher_model.php
Line Number: 156
A PHP Error was encountered
Severity: Warning
Message: in_array() [function.in-array]: Wrong datatype for second argument
Filename: models/publisher_model.php
Line Number: 161
A PHP Error was encountered
Severity: Warning
Message: in_array() [function.in-array]: Wrong datatype for second argument
Filename: models/publisher_model.php
Line Number: 161
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/.../public_html/systemxtr/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 408
———————————————
Thanks in advance!
BoldMinded (Brian)
Did you select a site in the settings page? https://www.evernote.com/shard/s9/sh/64b65699-fcc5-47a4-9a41-90645ef3bf1a/1dfbf776ab4d0a35fd322f9ab9fd313e
Ante Beljan
No I did not. This fixes the issue but causes another problem. Now i can’t navigate the upper panel menu items (the ones that have subitems, doesn’t open the dropdown lists on click, can’t get to them by hovering).
Also, I get these errors when on the Publisher - Categories tab:
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant ASSETS_VER - assumed ‘ASSETS_VER’
Filename: assets/helper.php
Line Number: 135 A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/…/public_html/systemxtr/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 408
Brian Litzinger
Do you have Assets installed?
Ante Beljan
Yes, Assets v.2.1.3.
Brian Litzinger
Strange. I have 2.1.2 installed and don’t see the error. I’ll upgrade later today and see if I can replicate it.
Brian Litzinger
And sorry for asking about Assets, I now see it in your original post.
Ante Beljan
No problem. 😊 Let me know if you need any additional information.
BoldMinded (Brian)
I cant replicate this even after upgrading, but this might fix it. Open up libraries/Publisher_helper_cp.php and go to line 340 and you’ll see this
Change it to this
And see what happens.
Ante Beljan
Great, that helped with the errors! The upper menu problem is still here though: “Now i can’t navigate the upper panel menu items (the ones that have subitems, doesn’t open the dropdown lists on click, can’t get to them by hovering).”
BoldMinded (Brian)
That means there is probably a JS error somewhere. Can you check your console?
Ante Beljan
I’ve tried, but I can’t seem to locate the error.
BoldMinded (Brian)
Can you provide CP access so I can take a look?
Ante Beljan
Hello! Sorry, had a few days off. I can provide access, should I send the login info by e-mail?
Ante Beljan
I’ve added the info into the original ticket.
BoldMinded (Brian)
Ante, it looks like you’re using Sassy CP and the Zoo Visitor menu module. When I use the default theme and disable the custom menu everything seems to work fine. I don’t think this is a bug with Publisher.
Ante Beljan
Yes, it works fine now. Thank you! 😊