I have a site with a large number of taxonomy terms. Now I need to add meta keywords and meta description to all of this terms. My solution is :
- Resave all terms by VBO module.
- Create a rules on "before saving taxonomy term".
- The created rules execute a PHP code which adds meta keywords and meta description to each of the tags.
In this way when VBO is resaving terms one by one my rules is executed for each of theme and do the trick.
Now the problem is in step one. I have an "execute arbitrary PHP script" operation in VBO for terms. I use this code in it:
but I face this error:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /backup-sar/batch?id=412&op=do StatusText: OK ResponseText: Fatal error: Function name must be a string in C:\xampp\htdocs\backup-sar\sites\all\modules\views_bulk_operations\actions\script.action.inc(20) : eval()'d code on line 1
This one with the same error does not work too:
Any help would be appreciated. Thanks in advance.