Bug #18050 Version Retired

[MOJO] default_page value of NULL bug creates database error

Version: 2.7.1 Reporter: PrestonSoft

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

What were you doing?

Installing and configuring the system like a boss.

What did you expect to happen?

A installed and configured system.  Don’t git-blame me, I was pairing.

What actually happened?

Code Bug:

Database schema does not allow NULL for default page.

Module:

setup_model.php

Function:

public function insert_initial_settings($default_page = NULL)

Detail:

The function signature is not the only issue and can be seen during an install with debug enabled.

controllers/setup.php has a function called _add_site_data which will call this routine with a NULL default page.

line 951:  if ( ! $this->setup_model->insert_initial_settings())

this, in turn, is called by _do_install

I patched it by putting in a dummy value of ‘index.html’ but it should be corrected in the method signature.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases