Module

Developer
Supported

Sitemap Module

ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

You must be logged in to post.

Strange 500 error when trying to access via modules

Support (Resolved)

alamode
alamode

I was able to install Sitemap fine, but when I try to access it via the CP Modules section, I receive a 500 server error. I have tried to see why through the logs, but this is the most generic error I could have asked for.

It seems to hit at:

http://domain&D=cp&C=addons_modules&M=show_module_cp&module=sitemap

I can’t figure out why this is happening. I can access other modules fine. Any ideas what could be causing this?

Thanks,
Brian

PutYourLightsOn
# 1
Developer
PutYourLightsOn

hi brian, what versions of EE, PHP and the Sitemap Module are you on?

alamode
# 2
alamode

Oops. I guess that would help no?

EE v2.5.3 - Build Date: 20120911
PHP Version 5.3.13
Sitemap 2.6

alamode
# 3
alamode

If it helps, I found that it seems to break when the mcp.sitemap.php file is writing to the db around line 85.

// insert new row
$this->EE->db->insert('sitemap'$data); 

When I print out my data just before that point, I have this:

Array
(
    
[url] => http://w3.dev.com/index.php/
    
[site_id] => 1
    [change_frequency] 
=> 
    
[priority] => 

UPDATE:
I was able to get this to work by modifying my exp_sitemap table to allow NULL entries. I don’t know if that should be ‘required’ though.  ;)

PutYourLightsOn
# 4
Developer
PutYourLightsOn

hmm i’ll look into this, glad you got it working

alamode
# 5
alamode

It may be something with this local setup on IIS7 too. I just never ran into this before and thought I would reach out to make sure. Thanks Ben. Keep up the good work.

PutYourLightsOn
# 6
Developer
PutYourLightsOn

yeah that might explain it. sure thing!!