Parse error: syntax error, unexpected ‘clone’ (T_CLONE), expecting identifier (T
-
I am using the latest version of the plugin (5.8.1.20). When trying to activate the plugin, I got this error:
Parse error: syntax error, unexpected 'clone' (T_CLONE), expecting identifier (T_STRING) in /home/shalomraleigh/public_html/wp-content/plugins/events-manager/classes/em-datetime.php on line 156
This prevented the plugin from being activated. So I have removed this entire section, which includes line 156:
`/**
* Easy chainable cloning function, useful for situations where you may want to manipulate the current date,
* such as adding a month and getting the DATETIME string without changing the original value of this object.
* @return EM_DateTime
*/
public function clone(){
return clone $this;
}`
Now the plugin activates. But I am worried that when I upgrade to the next version, I will get this error all over again and the plugin will not work. Is this section of code important to the plugin functioning properly? Do I need to do something on my end to fix the error, or is it just a bug?The page I need help with: [log in to see the link]
- The topic ‘Parse error: syntax error, unexpected ‘clone’ (T_CLONE), expecting identifier (T’ is closed to new replies.