syntax error, unexpected 'public' (T_PUBLIC), expecting ',' or ';' in dashboard/pages/themes
Permalink
So I was installing/removing/reinstalling themes to fix a previous problem and I had uninstalled the elemental theme (I don't want my client to use it either) Now whenever I go to the the dashboard/pages/themes I am getting a Unexpected error, syntax error, unexpected 'public' (T_PUBLIC), expecting ',' or ';'
It wont let me add templates to my custom theme or even reinstall anything new. I just get this with the option to go home. The files for the elemental template are still intact, so I wonder if there is something out of wack with one of the php files or the database.
It wont let me add templates to my custom theme or even reinstall anything new. I just get this with the option to go home. The files for the elemental template are still intact, so I wonder if there is something out of wack with one of the php files or the database.
That usually means that a file was corrupted, I would suggest re-uploading the theme.
I have tried that time and time again... and I am still getting this error. It is as if something in the dashboard got wacky ;/
I'm not a specialist, but I suppose that problem is in one of the themes that still are in "themes" directory, and which you were editing. Simply check page_theme.php files that you were editing recently and make sure that there don't miss any ',' or ';' or even '}'. Maybe, while editing, you delete one too much, or didn't type it. And sorry for my English ;)