Page 1 of 1

Error messages on the OpenCATS login screen (Deprecated)

Posted: 04 Sep 2015, 03:24
by fbrose
Hi Team,

I keep getting these errors on the login screen:

Strict Standards: Declaration of SimpleImageSubmitTag::write() should be compatible with SimpleWidget::write(&$encoding) in /home/NNNNNNNN/public_html/INSTALL/lib/simpletest/tag.php on line 483

and many many lines like this too:
Deprecated: Assigning the return value of new by reference is deprecated in /home/NNNNNNNN/public_html/INSTALL/lib/simpletest/form.php on line 176

I request you to help me to resolve this.

Warm regards,

Fabian

Re: Error messages on the OpenCATS login screen (Deprecated)

Posted: 04 Sep 2015, 10:10
by RussH
Hi Fabian, glad you made it here. Are you installing 0.9.1a (current release) or 0.9.2(development release)? Most of these errors should be resolved in development. Certainly the demosite has no errors on it (http://demo.opencats.org)

These errors are notification only and don't affect performance. Are you running in LAMP or WAMP environment? If you're running under a LAMP stack, please edit the php.ini file so that errors are not displayed. For WAMP - I believe it's a left click on wamp icon mouse over PHP and then php settings, uncheck display errors.

Re: Error messages on the OpenCATS login screen (Deprecated)

Posted: 04 Sep 2015, 21:33
by fbrose
Hi Russ, yeah, I'm happy to be here. BTW I can't find the php.ini file. I'm running CATS Version 0.9.1 (Beas) on a shared web server.

Am I missing something here?

Warm regards,

Fabian

Re: Error messages on the OpenCATS login screen (Deprecated)

Posted: 05 Sep 2015, 11:17
by RussH
Hi Fabian,

ahh - shared hosting. Lovely!

Some providers allow a php.ini per customer account, or they can amend it via cpanel. Can you ask your hosting support if there's a php configuration somewhere you can use to suppress display errors?

Alternatively -

install 0.9.2 from github (https://github.com/opencats/OpenCATS/archive/master.zip)

OR

amend the start of your index.php file in the opencats root directory from this;
Code: Select all
<?php
/*
 * CATS
 * Index (Delegation Module)
 *
 * CATS Version: 0.9.2 Diablo
 *
 * Copyright (C) 2005 - 2007 Cognizo Technologies, Inc.
 *
to this;
Code: Select all
<?php
ini_set('display_errors','off');
/*
 * CATS
 * Index (Delegation Module)
 *
 * CATS Version: 0.9.2 Diablo
 *
 * Copyright (C) 2005 - 2007 Cognizo Technologies, Inc.
 *

Re: Error messages on the OpenCATS login screen (Deprecated)

Posted: 05 Sep 2015, 13:03
by fbrose
Hi Russ, Thanks a lot - I will try all the options suggested and post feedback.

Warm regards,
Fabian

Re: Error messages on the OpenCATS login screen (Deprecated)

Posted: 05 Sep 2015, 13:21
by fbrose
Hi Russ,

BINGO!

I have edited the index.php file to include the following code:
<?php
ini_set('display_errors','off');
/*

It worked and now there are no errors!

Thanks a lot and I appreciate al your help.

Warm regards,
Fabian