简体   繁体   中英

wordpress error: Fatal error: Cannot redeclare class stuser

I'm busy building a wordpress website, and this error pops up occasionally, and from there onward I cannot access the wordpress site.

The error is

Fatal error: Cannot redeclare class stuser in /home/content/n3pnexwpnas02_data02/74/3540574/html/wp-content/themes/traveler/inc/admin/class.user.php on line 16

The peculiar thing is, if i wait about 10 minutes and refresh the page I can then login and continue as normal. But after working for a while the error re-appears.

I have little coding experience and am not sure how to fix this. I am a noob with code. Perhaps some kind developer could help me fix this error?

I would be much appreciated.

Thank you

Tony

在此处输入图片说明

class stuser is hooked into something and gets instantiated. I can only guess it's on the admin side if you're able to login (& possibly see the site without being logged in).

I don't have the rep to comment, so without asking questions, go to that file and comment out new stuster() -- see if this file/class is necessary to your theme development. I've been doing this for sometime and I wouldn't say it is necessary.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM