Jump to content

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


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.



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




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?


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

  • Recently Browsing   0 members

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