Topic: Problem Add News

Help me not to publish news!

"/html/novosti/inc/functions.inc.php",5,5,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",5,34,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",7,5,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",7,34,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",9,5,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",9,34,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",11,5,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",11,34,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",13,5,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",13,34,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/inc/functions.inc.php",20,47,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/functions.inc.php",21,45,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/functions.inc.php",115,62,warning,"The use of function split is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_split instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/functions.inc.php",213,13,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/functions.inc.php",289,21,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.inc.php",54,13,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.inc.php",191,13,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.inc.php",255,33,warning,"The use of function ereg_replace is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_replace instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.inc.php",372,41,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.inc.php",435,85,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.inc.php",781,72,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.staro.php",54,13,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.staro.php",185,13,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.staro.php",247,33,warning,"The use of function ereg_replace is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_replace instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.staro.php",357,41,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.staro.php",420,85,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/inc/shows.staro.php",766,72,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/index.php",80,14,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/index.php",80,68,error,"The use of long predefined variables has been deprecated in 5.3 and removed in 5.4",PHPCompatibility.PHP.LongArrays,5
"/html/novosti/index.php",125,18,error,"The use of function session_register is discouraged in PHP version 5.3 and forbidden in PHP version 5.4 and forbidden in PHP version 5.5; use use $_SESSION instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/index.php",126,18,error,"The use of function session_register is discouraged in PHP version 5.3 and forbidden in PHP version 5.4 and forbidden in PHP version 5.5; use use $_SESSION instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/index.php",127,18,error,"The use of function session_register is discouraged in PHP version 5.3 and forbidden in PHP version 5.4 and forbidden in PHP version 5.5; use use $_SESSION instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/index.php",128,18,error,"The use of function session_register is discouraged in PHP version 5.3 and forbidden in PHP version 5.4 and forbidden in PHP version 5.5; use use $_SESSION instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/index.php",240,8,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/search.php",32,13,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/search.php",189,63,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/search.php",200,12,warning,"The use of function ereg is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/show_archives.php",19,4,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/show_news.php",21,8,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5
"/html/novosti/show_news.php",41,4,warning,"The use of function eregi is discouraged in PHP version 5.3 and discouraged in PHP version 5.4 and discouraged in PHP version 5.5; use preg_match instead",PHPCompatibility.PHP.DeprecatedFunctions,5

2 (edited by 2013-05-26 20:13:41)

Re: Problem Add News

Upgrade to a newer version of CuteNews. You're using an old version that was probably written in the times of PHP 4.

https://cutephp.com/cutenews/upgrade.php

Re: Problem Add News

Thank, Cutenews try with 1.5.3, also does not work!

Re: Problem Add News

What errors is CuteNews 1.5.3 giving you? What PHP version are you running? Are you running CuteNews locally (= on your computer) or on a web server?

The errors you posted about in the first post suggest that you're using at least PHP 5.3 and that you were using an old version written in the times of PHP, where functions like eregi() were still valid. The old functions have been removed in the 1.5 branch, so using CuteNews 1.5.3 will definitely not give you the same errors.

Re: Problem Add News

altough they are just warnings and could be turned off by using

error_reporting (0);
at the top of the CN index.php right under <?php

It does seem you're not using the last version of CN.
And when you said

Thank, Cutenews try with 1.5.3, also does not work!


you meant you have troubles upgrading or setting the new version up. Rather then having the same problem. Be aware that the latest version fixes a lot of security issues and your older CN version is open for hacking.

Posts: 5

Pages 1

You must login or register to post a reply