Skip Navigation

[Résolu] PHP Warnings since latest update to Access 2.7.3

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: Since updating to Access 2.7.3, I am seeing warnings in the error logs like

PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /path/to/site/wp-content/plugins/types-access/application/controllers/permissions_post_types.php on line 447

Solution: Update to Access 2.7.4

This support ticket is created Il y a 5 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Marqué : 

Ce sujet contient 7 réponses, a 2 voix.

Dernière mise à jour par julieP Il y a 5 années et 6 mois.

Assisté par: Christian Cox.

Auteur
Publications
#1247118

I'm seeing this error in debug.log when users visit forms:-

PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /home/xxxx/public_html/wp-content/plugins/types-access/application/controllers/permissions_post_types.php on line 447

I've made no changes to either user permissions or the access settings for my forms for months. This error has only started appearing since the last update. I've double checked the settings though and they are correct.

#1247176

Hi, I haven't seen any other recent reports of this but with Access there are lots of variables to contend with. If you've tried the basic debug steps then I could try to reproduce this with a clone of your site if you can send me a download link. Please let me know if there is a specific User I should be testing with, on a specific Form, or if you haven't pinned it down to a specific Form please let me know where a few Forms are that I can interact with and try to narrow it down. Thanks!

#1247671

hi Christian

Link to files provided in private box.

Have used my basic test site which has been upgraded to wordpress 5.2.1, Access 2.7.3 and Views 2.8.1.1 and replicated the issue when visiting 'create post' as logged in user with custom role based on contributor. Have left debug log for you to see.

On the site I'm developing where I first had the issue, I'm using Cookie Notice plugin (by dfactory) and this isn't working correctly now (the cookie notice re-appears on pages other than the one where the user has made a choice to allow or decline cookies). This works again if I roll back to Access 2.7.2. thought I'd mention it in case it helps troubleshooting.

Let me know if you need anything else.

#1248491

Thanks, I'm escalating this to 2nd tier now. I'll let you know what I find out.

#1250185

Our developers have produced a patch file for this issue. Please replace the same file in types-access/application/controllers with the unzipped file you can download here: https://drive.google.com/file/d/1uhigtLg5v5WcwB_xEDEdA15KcSJOZwui/view?usp=sharing

Then let me know if the problem is not completely resolved. Thanks!

#1251119

Thank you Christian - no errors now 🙂

#1252959

Access 2.7.4 is out now and contains the fix for this problem. The patch is no longer necessary.

#1254227

thanks for the heads up - much appreciated!