Jump to content

Upgrading to PW3 / Page Reference Field (PHP Custom Code) Problem


Orkun
 Share

Recommended Posts

Hi Guys

After upgrading from 2.7.3 to 3.0.141 I am getting following errors when editing pages that have a page reference field with php custom code option enabled.

743143467_Bildschirmfoto2019-10-02um11_30_11.thumb.png.0106e49f4c72207ad0862403e23b7b92.png

 

On the corresponding page/template I have these two fields/custom code:

choose_sender.thumb.png.c89edaeffd7e7cdaa101ce277a034357.png

footer.thumb.png.e549e56a14b880dc509236ee7846fcf8.png

 

I have tried to solve it by adding

namespace ProcessWire;

at the top of the custom code (for both pagefields) but that doens't worked. The error still persist.

How can I solve this?

KR
Orkun

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...