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: SQL Error upon Draft Submission

Status Resolved
Add-on / Version Publisher Lite 2.2.1
Severity
EE Version 3.5.2

Geoff Baumbach

Feb 18, 2017

I was able to eliminate the SQL error by uninstalling Publisher and Structure. I reinstalled structure and was able to add/edit pages/assets normally. I went to re-install Publisher, and got the white screen of death. This is the error output I am receiving:

Error

Argument 1 passed to BoldMinded/Publisher/Service/Session::setCurrentLanguage() must be an instance of BoldMinded/Publisher/Model/Language, null given, called in user/addons/publisher/Service/Session.php on line 582 and defined

user/addons/publisher/Service/Session.php, line 397 show details

Severity: E_RECOVERABLE_ERROR

Fatal error: Call to a member function getId() on null in /home/gcv/www/www/system/user/addons/publisher/Service/Session.php on line 399


——-

I was able to correct the error by deleting my session cookies, but thought you might want a heads up on this. I’ll keep you posted on my progress seeing if I can get these two plugins to mingle correctly.


——
UPDATE:
I’ve got it working right now—this session cookie is a bug if you enable the language for the site (the checkbox next to the title of your site) and then proceed to uninstall the plugin.

As for the original SQL error, I believe it may be the result of setting my channel to limit the number of entries to only *1* entry (it’s a homepage channel). I removed the limit this time and did not get any SQL errors. Might be something to test and verify.

Otherwise, I think my issue is resolved for the moment. Previews and drafts are working it appears.

#1

BoldMinded (Brian)

Hi Geoff. I don’t see any attachments. Can you just copy paste the error?

#2

BoldMinded (Brian)

None of those errors are from Publisher. It looks like it’s a Structure error.

#3

Geoff Baumbach

Updated the message above, I think I am good but you might want to look into those items as I was able to replicate the session issue twice. Thx!

#4

Geoff Baumbach

Another quick thing I noticed separate of the above items–if an entry does not have a draft, but I attempt to view the Draft, the Assets field within my grid field does not get properly populated.

I discovered this when I changed the setting from Default View > Published to Default View > Draft. My clients typically make quite a few edits and like to preview a lot, so I didn’t want to have them repeatedly save as draft, then click view draft every time to make updates. It works fine provided a draft always exists, but when you finally publish the entry, the Default View > Draft sends you to a presumably non-existent draft and the Assets field ends up dropping all data. My other fields seem to populate though at the moment. If you want this as a separate ticket, I can do so.

Thanks

#5

BoldMinded (Brian)

I was not able to replicate the Assets issue. I created a new entry, saved it as Published. Then viewed its draft, and the image I selected is displaying. I changed the Default View setting to “Draft” and still could not replicate it.

Can you take a video replicating the issue so I can see what you are seeing? Creating a separate ticket when posting the video would be helpful too. Thanks.

Login to reply