All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

Ticket: Publisher and Store

Status Resolved
Add-on / Version Publisher
Severity Trivial
EE Version 30

Aaron @ Emagine

Jul 26, 2013

I have publisher working in conjunction with expresso store, and all working as intended, but for one element. When I submit a billing/shipping information form without any information, it triggers the default store validation ‘please enter your name’ etc etc.  But it also in the same breath triggers a publisher error I was hoping you could tie down:

A PHP Error was encountered
Severity: Notice

Message: Undefined property: Publisher_lib::$prev_lang_id

Filename: models/publisher_template.php

Line Number: 1054
#1

BoldMinded (Brian)

In libraries/Publisher/Publisher_session.php go to line 337 or so and you’ll see this:

ee()->publisher_model->current_language = ee()->publisher_model->languages[ee()->publisher_lib->lang_id];

Add this after it and see what happens. Also test the language switching to make sure everything still works.

if ( !ee()->publisher_lib->switching && !isset(ee()->publisher_lib->prev_lang_id))
{
    ee()->publisher_lib->prev_lang_id = ee()->publisher_lib->lang_id;
}
#2

BoldMinded (Brian)

Aaron, did you apply this change? If so did it fix the issue?

#3

Aaron @ Emagine

Hi Brian, sorry got sidetracked on a few things. We implemented this and what it does now is when you submit without any information, it takes you to the home page of the site. No errors occur, but confusing nonetheless for users.

Any ideas?

#4

BoldMinded (Brian)

You might need to provide FTP/CP info for me to look into this. I don’t have Store setup and configured in my sandbox.

#5

BoldMinded (Brian)

Any updates on this?

#6

BoldMinded (Brian)

Marking this resolved, have not heard anything in a month.

Login to reply