- This topic has 1 reply, 2 voices, and was last updated 10 years, 8 months ago by traversal.
Author | Posts |
---|---|
February 28, 2014 at 4:35 am #3438 | |
dovetail
Post count: 18
|
Created a custom role called “volunteer.” Logged in as that user, and browsed to front-end page with this code: (1) $this_user_id = get_current_user_id(); Line (3) causes the following PHP errors: Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1178 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1179 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1182 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1178 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1182 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1178 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1182 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1178 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1182 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1178 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1182 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1178 Notice: Undefined variable: iid in /var/www/vhosts/oldstlouis.com/cmavolunteers.com/wp-content/plugins/masterpress/core/api/meow/meow-data-provider.php on line 1182 I var_dumped “$this_user” and it was correct, so it’s definitely the iterator that is breaking the code. A clue: there were 6 timecards in the system, although only two of them were associated to this user. There were 13 errors, but 6 each attributed to lines 1178 & 1182. I added a 7th timecard, and now there are 15 errors (7 each attributed to lines 1178 & 1182) So it seems like it’s pulling ALL timecards (not just ones associated to this user), and triggering two errors for each, plus an extra error on line 1179.
|
February 28, 2014 at 4:14 pm #3440 | |
traversal
Post count: 207
|
Hmm, not ideal, clearly. I’ll setup the same scenario myself and work out what’s going on there. |
You must be logged in to reply to this topic.