ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

fatal PHP error in Server Wizard: undefined function show_error()

June 26, 2012 2:24pm

Subscribe [2]
  • #1 / Jun 26, 2012 2:24pm

    Michael Rog

    179 posts

    This question may be related to a resolved thread.

    I’m trying to run the Server Wizard to check compatibility on a client’s host.

    phpinfo() confirms that PHP 5.2 is installed and running, but dialing up the wizard produces only this PHP error:

    Fatal error: Call to undefined function show_error() in D:\Inetpub\...\ee_wizard\index.php on line 421

    According to a prior thread, this issue has been solved before, but that thread doesn’t mention how. Any suggestions?

  • #2 / Jun 27, 2012 2:49pm

    Dan Decker

    7338 posts

    Hi Michael,

    I am sorry you’ve run into this!

    show_error() is a function in CodeIgniter, which is not supposed to be required for the Server Wizard.

    Can you open the index.php file in the Server Wizard and change line 421 from

    show_error('Unable to load the requested file: '.$_ci_file);

    to read

    echo('Unable to load the requested file: '.$_ci_file);

    That should get us around the problem.

    Cheers,

  • #3 / Jun 27, 2012 3:40pm

    Robin Sowell

    13255 posts

    Hi Michael,

    Dan asked me to take a look as well.  The echo would eliminate the error you’re running into (and I’ll fix up the downloadable file with an exit() asap).  However- that won’t address the core problem, which is that the script can’t find a file it’s supposed to be able to find. 

    It’s possible something got mangled in FTP- what I’d do is delete the existing server wizard folder and upload a fresh copy.  Unzip it- go in and upload the entire ee_wizard folder. 

    If it’s still a problem- editing that line to the echo as Dan suggests or

    exit('Unable to load the requested file: '.$_ci_file);

    will show us the path it’s using to try and load the file.  Unless something odd is going on- it should have no problem finding it.

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

ExpressionEngine News!

#eecms, #events, #releases