Copying language-mass-update.js ... OK
Updating footer-extras.php to load nicEdit and language file Skipped
Table 'contactform' has 1 commands
Generating /homepages/5/d106639433/htdocs/budgetapp/hooks/ajax-mass-update-contactform-category-3c3iee354et9wuscgv3r.php OK
File contactform-tv.js already exists, so we're updating it OK
Generating code in contactform_batch_actions function OK
But when I go to my contactform table it does not load anymore, instead I get following error message:
*************
Parse error: syntax error, unexpected '<', expecting case (T_CASE) or default (T_DEFAULT) or '}' in /homepages/5/d106639433/htdocs/budgetapp/hooks/contactform.php on line 388
*************
Locally all works fine it's on on server (live site) that it does not work.
I have to upload a 'clean' contactform.php to server to have page loading work again.
The returned contactform after applying Mass Update shows:
Code: Select all
function contactform_batch_actions(&$args) {
/* Inserted by Mass Update on 2019-11-10 04:59:55 */
/*
* Q: How do I return other custom batch commands not defined in mass_update plugin?
*
* A: Define your commands ABOVE the 'Inserted by Mass Update' comment above
* in an array named $custom_actions_top to display them above the commands
* created by the mass_update plugin.
*
* You can also define commands in an array named $custom_actions_bottom
* (also ABOVE the 'Inserted by Mass Update' comment block) to display them
* below the commands created by the mass_update plugin.
*
*/
if(!isset($custom_actions_top) || !is_array($custom_actions_top))
$custom_actions_top = array();
if(!isset($custom_actions_bottom) || !is_array($custom_actions_bottom))
$custom_actions_bottom = array();
$command = array(
'3c3iee354et9wuscgv3r' => array(
'title' => "Contact Category",
'function' => 'massUpdateCommand_3c3iee354et9wuscgv3r',
'icon' => 'asterisk'
),
);
$mi = getMemberInfo();
switch($mi['group']) {
case 'Admins':
return array_merge(
$custom_actions_top,
array(
$command['3c3iee354et9wuscgv3r']
),
$custom_actions_bottom
);
<br /> /** THIS IS LINE 388 */
<b>Warning</b>: count(): Parameter must be an array or an object that implements Countable in <b>/homepages/5/d106639433/htdocs/budgetapp/plugins/mass_update/generate.php</b> on line <b>620</b><br />
}
/* End of Mass Update code */
return array();
}
Cheers,
Ron