I built a site on my local computer, using xammp and it worked fine. I uploaded it to my host temp server and initially ran into a memory error. I had Cox (the host) up the php.ini and now I am getting an error reading, "Fatal error: Cannot redeclare views_views_plugins() (previously declared in /data/1/0/2/121/2284/user/39073/htdocs/sites/all/modules/views/includes/plugins.inc:15) in /data/1/0/2/121/2284/user/39073/htdocs/sites/all/modules/modules/views/includes/plugins.inc on line 402"

I searched this issue and found some similar but nothing on point. Site is located at http://0000uvl.previewcoxhosting.com/. Can anyone help?

Comments

cosimo86’s picture

The very same thing happened to me.

I uploaded my website on a GreenGeeks server, got the php memory error which has been fixed by the staff. Then, I cleared the cache and this error showed:

Fatal error: Cannot redeclare views_views_plugins() (previously declared in /home/arcadia1/public_html/includes/sites/all/modules/views/includes/plugins.inc:15) in /home/arcadia1/public_html/sites/all/modules/views/includes/plugins.inc on line 402

How can this be?

Triumphent’s picture

The very same thing just happened to me after transferring my website to another hosting company.

You must run update.php.

Since I was logged out, the way I resolved this is as follows: I typed in the url box www.example.com/update.php (www.example.com being your site's name. If it's on your local machine, I guess it is something like localhost/update.php.)

If your settings.ini file is properly configured, you should get an access denied message. In that case, go to the directory (sites/default) and open the settings.ini file. Look for the line $update_free_access = FALSE;
and change it to TRUE. Run update.php again. You will find a link at the bottom of the result page sending you to the front page. Click on it and your site is back in business. :)

CAUTION: Go to your settings.ini file again and change the TRUE back to FALSE again.

CProfessionals’s picture

Thanks!... that fixed it for me!

ricardobabe’s picture

Thanks so much, it worked for me.

zenmetro’s picture

Thanks for best solution

namwebs’s picture

(NB. It's settings.php not settings.ini as noted by Triumphent.)

THANK YOU, THANK YOU, THANK YOU!

This happened to me after upgrading my hosting package with bluehost from shared to pro. A multisite, with 6 sites. Strangely, 4 of them were fine but 2 of them needed update.php to be run as described above.

Triumphent’s picture

Yes, you are correct.

It is settings.php, not settings.ini

Sorry for the typo and thank you for pointing it out.

hendrohwibowo’s picture

thank you thank you thank you.... :))

joelhsmith’s picture

This error can also be caused by having duplicate modules. For example one copy is in /sites/default/modules and a different copy in /sites/all/modules . The duplicate module might not be Views. Any duplicate module has the potential to cause this error.

Logesh waran’s picture

joelhsmith, In case of duplicate modules, what should we do. do we need to replace the duplicate module? or any other solution?

gratefulcreative’s picture

@joelhsmith - thanks for this. I stored an old copy of one of my modules in "viewsold" directory. as soon as I deleted this, site works (no need for update.php)

samhaldia’s picture

Yes there were duplicate copy of modules. Thanks

cern’s picture

Thank you so much!