Forum
Errors after Perch upgrade (2.4.9 to 2.7.2)
Hi. We're experiencing a bunch of errors after upgrading our client's version of Perch from 2.4.9 to 2.7.2. The problem occurs when they try to save changes to a content region:
PHP Warning: json_encode(): Invalid UTF-8 sequence in argument in /admin/core/lib/PerchUtil.class.php on line 535
PHP Fatal error: Call to undefined method PerchAdmin::event() in /admin/core/apps/content/PerchContent_Region.class.php on line 381
First we upgraded Perch following the update instructions, disabling each of their installed apps beforehand. Then we went back and upgraded each app (Events, Forms and Gallery) one-by-one, and then re-enabled them.
Any advice on how to correct this problem would be great. Thanks.
Can we see your Diagnostic Report please?
Sure. Here it is:
On a side note, it would be nice if the diagnostic report omitted the
PERCH_MAILER_PASSWORD
variable, like it does theDB_PASSWORD
one. Just something I've noticed. Cheers.There should be a brief report that doesn't include all that stuff.
Does this happen with all regions, or just some?
Does it make a difference if you add the following to your
config.php
file?Hi Drew. Adding that extra constant doesn't appear to make a difference.
Yes, it occurs when saving any region on any page. I've also noticed that an error occurs during login too:
Basically, the login stops on a blank page (because I have
display_errors
turned off). I then have to refresh the blank page again to actually get logged in.Is it possible you might not have a complete set of files?
Hi Drew. I think I've fixed the issue. I compared all the files in version control and somehow it looks like when we overwrote the old
core
folder with the new one thePerchAdmin
class file never got copied. Now I've updated that file everything appears to work nicely.Thanks for your help.