bbeer Posted February 7, 2014 Share Posted February 7, 2014 Hi all I've tried to install ProcessExportProfile now I get a Internal server Error. I can't get to the Admin nor ist the Frontend loading. In errors.txt there ist following entry. http://www......./processwire/module/ Compile Error: Cannot redeclare class MarkupSitemapXML (line 3 of /var/www/...../data/www/......com/site/modules/MarkupSitemapXML/MarkupSitemapXML.module) does anyone have a quick fix for this problem? Thanks a lot! Link to comment Share on other sites More sharing options...
SiNNuT Posted February 7, 2014 Share Posted February 7, 2014 Not to state the obvious but have you tried deleting the module files from the server? On the exportprofile page it says something about incompatibility with multilang fields. Is there any chance this hampering you? Maybe try deleting/renaming the MarkupSitemapXML.module as a last resort? Link to comment Share on other sites More sharing options...
bbeer Posted February 7, 2014 Author Share Posted February 7, 2014 ok renaming the module does not do the trick. Is there a way to uninstall it via api to at least have the site running again and then check on from there? Link to comment Share on other sites More sharing options...
diogo Posted February 7, 2014 Share Posted February 7, 2014 Try also to replace the files from the module by new ones. Might be that one is corrupted Link to comment Share on other sites More sharing options...
kongondo Posted February 7, 2014 Share Posted February 7, 2014 A error message about a class being redeclared means that you have, in this case, two modules with the SAME CLASS name running. Renaming the module alone won't do the trick. You need to open the .module file and rename the class there, e..g MyCustomMarkupSitemapXML. A .module file is just a php file. 2 Link to comment Share on other sites More sharing options...
bbeer Posted February 7, 2014 Author Share Posted February 7, 2014 OK I am in there do I have to rename class MarkupSitemapXML extends WireData implements Module to class MyMarkupSitemapXML extends WireData implements Module or is that somewhere else? Link to comment Share on other sites More sharing options...
bbeer Posted February 7, 2014 Author Share Posted February 7, 2014 ok renamed it but this does not do the trick Error: Class 'MarkupSitemapXML' not found (line 308 of /var/www/.../data/www/..../wire/core/Modules.php) Link to comment Share on other sites More sharing options...
Soma Posted February 7, 2014 Share Posted February 7, 2014 Looks like the XMLSitemap module is two times in there somewhere? Just curious, why ProfileExport? Can't you just transfer site folder and DB. Easy as it can get. Link to comment Share on other sites More sharing options...
kongondo Posted February 7, 2014 Share Posted February 7, 2014 Like Soma says and I alluded to earlier. Check your /sites/modules folder... if you have a file called MarkupSitemapXML.module inside this file you must also have class MarkupSitemapXML extends..... if you have a file called MyMarkupSitemapXML.module inside this file you must also have class MyMarkupSitemapXML extends.... In other words, the class and module name should match..... Edit: Btw, You would also have to rename related .css and .js files if you want them to be loaded with the module. Edit2: Was a bit misleading; edited for clarity. Link to comment Share on other sites More sharing options...
bbeer Posted February 7, 2014 Author Share Posted February 7, 2014 ok got it there were actually tow once in a Folder, once in the root of Modules, removed the folder now the page loads. Link to comment Share on other sites More sharing options...
kongondo Posted February 7, 2014 Share Posted February 7, 2014 (edited) Glad you sorted it. One thing I love about PHP is that it gives you very useful, meaningful feedback/error messages...unlike Windows which would say something along the lines "Something went wrong...and we've had to shut down the system" - bang BSOD!...I digress; I love my W7.... Edited February 7, 2014 by kongondo 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now