These are just warnings, but the code itself still works. The excel script
data. Setting the php.ini value display_errors=Off in will fix this. This
is something that should always be done in production environments.
Post by Michael KleinertHi Christian -
This is not actually my code, but a client's code, so I'm trying to find
the solution for him.
Is MDB2 a drop-in replacement?
My client's page is supposed to generate an Excel spreadsheet but no longer
does that and instead generates the below - I know how to suppress the
errors, but suppressing the errors is not going to restore the
functionality, right? -
*Strict Standards*: Non-static method DB::isManip() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *2200*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *1217*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *1666*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB.php* on line *1387*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *1683*
*Strict Standards*: Non-static method DB::isManip() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *2200*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *1217*
*Warning*: Cannot modify header information - headers already sent by
(output started at /usr/local/lib/php/DB/common.php:2200) in
*/home/monterey/public_html/theatrical/contracts/farewelltofools/contracts/hostedit.php*
on
line *110*
*Warning*: Cannot modify header information - headers already sent by
(output started at /usr/local/lib/php/DB/common.php:2200) in
*/home/monterey/public_html/theatrical/contracts/farewelltofools/contracts/hostedit.php*
on
line *111*
*Warning*: Cannot modify header information - headers already sent by
(output started at /usr/local/lib/php/DB/common.php:2200) in
*/home/monterey/public_html/theatrical/contracts/farewelltofools/contracts/hostedit.php*
on
line *112*
"id","Code","BillOrg","BillFirstName","BillLastName","BillPosition","BillAddress","BillCity","BillState","BillPostalCode","BillCountry","BillEmail","BillCountryCode","BillPhone","BookerOrg","BookerFirstName","BookerLastName","BookerPosition","BookerAddress","BookerCity","BookerState","BookerPostalCode","BookerCountry","BookerEmail","BookerCountryCode","BookerPhone","ShipOrg","ShipFirstName","ShipLastName","ShipPosition","ShipAddress","ShipCity","ShipState","ShipPostalCode","ShipCountry","ShipEmail","ShipCountryCode","ShipPhone","ListOrg","ListAddress","ListCity","ListState","ListPostalCode","ListCountry","ListContact","ListPhone","ListOpens","ListWWW","ConfirmationEmail","ListWeight","ShowDate1","ShowDate2","ShowDate3","ShowDate4","ShowDate5","ShowDate6","ShowDate7","ShowDate8","ShowDate9","ShowDate10","Holdover","Approved","Individual","Filed","Trash","DateAdded"
"1","1", .... additional client data ....
Post by Christian WeiskeHello Michael,
Post by Michael KleinertHi there - We upgraded a server to PHP 5.4 and PEAR DB no longer works
properly. I see that the project page refers to a newer project,
MDB2, but it looks like that was last updated in late 2012 so I'm not
sure if that one supports PHP 5.4.
Can anybody shed any light on this or provide guidance for a solution?
I know that MDB2 works on 5.4, but if you're changing your code anyway
you should use PDO.
Guidance for a solution is only possible if you give us error messages
and (small) scripts that reproducible don't work.
--
Regards/Mit freundlichen GrÃŒÃen
Christian Weiske
-=â¡ Geeking around in the name of science since 1982 â¡=-
--
_______________________________________
Signup for hosting today at BigRedHosting.com