The Movable Type Knowledge Base

Useless use of private variable (mt-check.cgi)

Question

When running mt-check.cgi under cgiwrap, it fails with the error Useless use of private variable in void context at mt-check.cgi line 318.

Answer

Open mt-check.cgi in a plain text editor and look for line 318:

$dbi_is_okay if $mod eq 'DBI';

and change it to this:

$dbi_is_okay = 1 if $mod eq 'DBI';

Save the file, upload it back to the server in ASCII, then try executing it again.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.