Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Banner Manager Warning


ddsavage2000

Recommended Posts

Posted

Warning: imagefontheight() expects parameter 1 to be long, string given in C:\xampp\htdocs\admin\includes\classes\phplot.php on line 675

 

Warning: imagefontheight() expects parameter 1 to be long, string given in C:\xampp\htdocs\admin\includes\classes\phplot.php on line 679

 

Warning: imagefontwidth() expects parameter 1 to be long, string given in C:\xampp\htdocs\admin\includes\classes\phplot.php on line 680

 

Warning: imagestring() expects parameter 2 to be long, string given in C:\xampp\htdocs\admin\includes\classes\phplot.php on line 689

 

 

code from phplot.php

 

$which_ypos = $which_ypos - ImageFontHeight($which_font);

}

$which_text = ereg_replace("\r","",$which_text);

$str = split("\n",$which_text); //multiple lines submitted by Remi Ricard

$height = ImageFontHeight($which_font);

$width = ImageFontWidth($which_font);

 

Any solutions greatly appreciated. Thanks

Posted
Warning: imagefontheight() expects parameter 1 to be long, string given in C:\xampp\htdocs\admin\includes\classes\phplot.php on line 675

 

Warning: imagefontheight() expects parameter 1 to be long, string given in C:\xampp\htdocs\admin\includes\classes\phplot.php on line 679

 

Warning: imagefontwidth() expects parameter 1 to be long, string given in C:\xampp\htdocs\admin\includes\classes\phplot.php on line 680

 

Warning: imagestring() expects parameter 2 to be long, string given in C:\xampp\htdocs\admin\includes\classes\phplot.php on line 689

 

 

code from phplot.php

 

$which_ypos = $which_ypos - ImageFontHeight($which_font);

}

$which_text = ereg_replace("\r","",$which_text);

$str = split("\n",$which_text); //multiple lines submitted by Remi Ricard

$height = ImageFontHeight($which_font);

$width = ImageFontWidth($which_font);

 

Any solutions greatly appreciated. Thanks

Problem solved but new fatal error occurred.

Posted

Might be nice to post solution for others that have the same problem.

 

Wonder what the new error is?

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
Might be nice to post solution for others that have the same problem.

 

Wonder what the new error is?

 

I attempted to edit the previous post with solution.

 

Replaced line 678 with:

 

$str = ereg_split("\n",$which_text); //multiple lines submitted by Remi Ricard

 

also had to eliminate else.

 

$which_text = ereg_replace("\r","",$which_text);

$str = ereg_split("\n",$which_text); //multiple lines submitted by Remi Ricard

$height = ImageFontHeight($which_font);

$width = ImageFontWidth($which_font);

 

} {

ImageString($this->img, $which_font, $which_xpos, ($i*$height + $which_ypos), $str[$i], $which_color);

}

}

}

 

 

return true;

Did eliminate errors of concern in original post.

Not sure if completed solved as attempting to work out succeeding error.

Posted

Fatal error: Call to undefined method PHPlot::SetRGBArray() in C:\xampp\htdocs\admin\includes\classes\phplot.php on line 174

 

 

Is hopefully last error in local setup. None of these existed when site was on host server.

 

Any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...