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: Exception Caught No such property: ‘publisher_site_pages’ on EllisLab\ExpressionEngine\Legacy\Facade Facade.php:120

Status Resolved
Add-on / Version Publisher 3.1.4
Severity
EE Version 5.3.0

pixi

Apr 09, 2020

Hi Brian,

I got this error when trying to create a member account from frontend via EE Harbor Visitor add-on :

Exception Caught
No such property: 'publisher_site_pages' on EllisLab\ExpressionEngine\Legacy\Facade
Facade.php:120

The thing is I couldn’t replicate it on a new installation with Publisher and Visitor installed. I didn’t get the error. This means I have to debug this one but don’t know where to look/start/end.

Thanks in advance.

 

#1

BoldMinded (Brian)

Apr 09, 2020

Unfortunately that doesn’t provide enough information to start debugging either. I need a full stack trace to get an idea of what might be triggering this. Right now it is like finding a needle in a haystack.

#2

pixi

Apr 10, 2020

Actually, I don’t know exactly what to give you.
What do you hear by “full stack trace”?

I have this Visitor form for sign in (the log in form works well)

{exp:visitor:registration_form id="signinForm" class="form__form" return='espace-membres/register/success' secure_action="yes" secure_return="yes" error_handling="inline"}
    {field_errors}{error}{/field_errors}
    
    
        <label for="member_firstname">{phrase:espace_membres__member_firstname_field_label}</label>
        <input type="text" id="member_firstname" name="member_firstname" placeholder="{phrase:espace_membres__member_firstname_field_label}" required>
    

    
        <label for="member_lastname">{phrase:espace_membres__member_lastname_field_label}</label>
        <input type="text" id="member_lastname" name="member_lastname" placeholder="{phrase:espace_membres__member_lastname_field_label}" required>
    

    
        <label for="signup-email">{phrase:espace_membres__member_email_field_label}</label>
        <input type="email" id="signup-email" name="email" placeholder="{phrase:espace_membres__member_email_field_label}" required>
        <span class="form__error">{error:email}</span>
    

    
        <label for="signup-password">{phrase:espace_membres__signupform_password_field_label}</label>
        <input type="password" id="signup-password" name="password" placeholder="{phrase:espace_membres__signupform_password_field_label}" required>
        <span class="form__error">{error:password}</span>
    

    
        <label for="signup-password-confirm">{phrase:espace_membres__signupform_confirmpassword_field_label}</label>
        <input type="password" class="form__input" id="signup-password-confirm" name="password_confirm" placeholder="{phrase:espace_membres__signupform_confirmpassword_field_label}" required>
    

    
        <input type="checkbox" id="accept_terms" name="accept_terms" value='y' {if accept_terms == 'y'}checked{/if} required>
        <label for="accept_terms"> {phrase:espace_membres__signupform_accept_terms_checkbox_label_part1}</label>
        <span class="form__error">{error:accept_terms}</span>
    

    
        <button type="submit" class="btn" id="signinBtn" tabindex="10">{phrase:btn_signUp}</button>
    
{/exp:visitor:registration_form}

I have another website where Visitor and Publisher works perfectly together with the same code.

#3

BoldMinded (Brian)

Apr 10, 2020

That error should have been followed by another box of content with a lot more error messages. You might have to click a “Show More” link or something. Just take a screenshot of the entire page when you get the error and share it.

#4

pixi

Apr 10, 2020

if only…
As you can see on the screenshot, unfortunately it is the only information I got.

#5

BoldMinded (Brian)

Apr 10, 2020

Try backing up your db, then uninstalling other addons one by one until the error goes away, then maybe we can at least narrow it down to a specific area of the code and go from there.

#6

pixi

Apr 10, 2020

Results : it is only when I uninstalled publisher that the Visitor registration worked so there is a conflic somewhere…where?

#7

BoldMinded (Brian)

Apr 10, 2020

Do you have the latest version of Visitor installed? My guess is that it is shortcutting EE’s normal boot process and doing it’s own template parsing, which means Publisher’s classes can’t be loaded. Try adding this conditional to see if it’ll print the call stack.

#8

BoldMinded (Brian)

Apr 10, 2020

if ($name === 'publsher_site_pages') {
      debug_print_backtrace(0, 10);
        }
#9

pixi

Apr 10, 2020

Sure! Where do I have to add these lines ?

Yes latest version of VIsitor and Publisher used.

#10

pixi

Apr 10, 2020

dumb question, sorry

#11

pixi

Apr 10, 2020

I just did (there was missing a “i” in the lines provided) but it gaves me litterally all the DB’s datas.

I cannot copy/past here because it takes kilometers.

#12

BoldMinded (Brian)

Apr 10, 2020

Change the second parameter from 10 to 1 and see what happens.

#13

pixi

Apr 11, 2020

it gaves :

#0 EllisLab\ExpressionEngine\Legacy\Facade->get(publisher_site_pages) called at [/var/www/vhosts/mydomainname/httpdocs/system/ee/EllisLab/ExpressionEngine/Legacy/Facade.php:30]
Exception Caught
No such property: 'publisher_site_pages' on EllisLab\ExpressionEngine\Legacy\Facade
Facade.php:124
#14

BoldMinded (Brian)

Apr 11, 2020

That’s the same error, so change the 1 to a 2, then 2 to 3 to see if it provides more information.

#15

pixi

Apr 12, 2020

Changing to 2 gives :

#0 EllisLab\ExpressionEngine\Legacy\Facade->get(publisher_site_pages) called at [/var/www/vhosts/mydomainname/httpdocs/system/ee/EllisLab/ExpressionEngine/Legacy/Facade.php:30] #1 EllisLab\ExpressionEngine\Legacy\Facade->__get(publisher_site_pages) called at [/var/www/vhosts/mydomainname/httpdocs/system/user/addons/publisher/Service/Entry/Entry.php:371]
Exception Caught
No such property: 'publisher_site_pages' on EllisLab\ExpressionEngine\Legacy\Facade
Facade.php:124

and changin to 3 gives the almost infinite kilometers scroll.

#16

BoldMinded (Brian)

Apr 13, 2020

Try the build linked in the next comment. That error finally revealed what I was looking for, and it looks like something I already fixed for the upcoming release.

#17

BoldMinded (Brian)

Apr 13, 2020

Comment has been marked private.

#18

pixi

Apr 14, 2020

Cool! It works now. Thank you very much as usual for your promt fix!

Login to reply