CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 What do I do to fix Deprecated warnings(RESOLVED)

Print topic Send  topic

Author Message
chriscripps

Posts: 30
Posted: 02/15/2011, 12:42 PM

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\nedpms\registered.php on line 98

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\nedpms\registered.php on line 99

I turned on the error reporting on my server to try to see where some problems were coming from. That worked, but as I do that, I get lots of these messages on each page. Is this something I should worry about/try to fix? The lines referenced are all in the CodeCharge generated code, not what I have added.

Thanks,
Chris
View profile  Send private message
datadoit
Posted: 02/15/2011, 1:27 PM

Chris, look at those lines (98, 99) and see what CCS function is being
used. Report back.
chriscripps

Posts: 30
Posted: 02/15/2011, 1:43 PM

I have another project open right now, and these are the lines giving me the deprecated warnings. Like I said, they are all in the CodeCharge gray boxes.
Chris

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\test\NewPage1.php on line 78 (and repeats for 79, 80, 81,82, 478, and 479 - all lines below)

$this->Button_Insert = & new clsButton("Button_Insert", $Method, $this);
$this->Button_Update = & new clsButton("Button_Update", $Method, $this);
$this->Button_Delete = & new clsButton("Button_Delete", $Method, $this);
$this->update_field1 = & new clsControl(ccsTextBox, "update_field1", "Update Field1", ccsText, "", CCGetRequestParam("update_field1", $Method, NULL), $this);
$this->update_field2 = & new clsControl(ccsTextBox, "update_field2", "Update Field2", ccsText, "", CCGetRequestParam("update_field2", $Method, NULL), $this);
$Panel1 = & new clsPanel("Panel1", $MainPage);
$test_update = & new clsRecordtest_update("", $MainPage);


View profile  Send private message
datadoit
Posted: 02/15/2011, 2:10 PM

There's something wrong with your form's control values, in that they're
defined wrong (defined as text but they're integers, defined as integers
but they're dates, etc.). Or, your datasource and WHERE parameters are
defined wrong in that they're not matching the type of data they're
looking for.

It's a data type mismatch.
chriscripps

Posts: 30
Posted: 02/15/2011, 3:43 PM

Thanks data for the input.

I found the problem was in my Project Settings. I had PHP version as 4.x. Changing it to 5.x solved the issue. Apparently the 5.3 and up versions of PHP creates the warning.

Chris
View profile  Send private message
datadoit
Posted: 02/15/2011, 4:13 PM

Excellent. May want to make certain your web host provider supports
5.x. There seem to be an enormous number of providers out there still
running 4.x.
advcomputer

Posts: 68
Posted: 02/22/2011, 4:22 PM

I am starting to have similar issues. It seems that php 5.3 has numerous deprecated functions.

I just put in a help ticket and lets see what happens. For those inmterested in the changes with 5.3 you can go to;

http://php.net/manual/en/migration53.deprecated.php

-Jeff Goldstein



View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.