Skip to main content
AustinWebmaster
Participant
December 15, 2025
Not Prioritized

The Warning "Array to string conversion" appears after upgrade to Dreamweaver 21.7

The Warning "Array to string conversion" appears in Output Errors/Warnings after upgrade to Dreamweaver 21.7

The warning appears to be related to PHP code for a multidimensionial array. The cause of the warning can  be demonstrated with the following code.

<?php

$BlockedSaleDATA=array("Category Name"=>"","Date ON"=>"","Date OFF"=>"","Blocked Reason"=>"","Listings"=>array("SCAN"=>0,"FOUND"=>0,"TOTAL"=>0,"ForSale"=>0,"NotForSale"=>0,"SCANmatch"=>""),"Notes"=>"","Processed"=>0,"Action"=>"","DELETE"=>"00/00/00");

 

Add that code to a PHP file and you will see the warning in the Output tab.

 

Remove the following code from the instruction and the warning disappears.

,"Listings"=>array("SCAN"=>0,"FOUND"=>0,"TOTAL"=>0,"ForSale"=>0,"NotForSale"=>0,"SCANmatch"=>"")

 

It appears to me Dreamweaver is not validating dimensional arrays correctly.