Jump to content

Recommended Posts

Posted

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!

Posted

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?

Posted

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?

Posted

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.

  • Like 2
Posted

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?

Posted

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)
 
Posted

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.

Posted

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.

Posted

ok got it 

there were actually tow once in a Folder, once in the root of Modules, removed the folder now the page loads.

Posted (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 by kongondo
  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...