In admin page in banner manager section the error beneath appears.There was an error when i installed v2.2 rc2a then i was said to install this:http://addons.oscommerce.com/info/7394.One of the files i replaced was phplot
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
Latest News: (loading..)
Error at banner manager
Started by adobe19, Jan 28 2012 11:59 PM
6 replies to this topic
#1
Posted 28 January 2012 - 11:59 PM
#2
Posted 29 January 2012 - 12:10 AM
@adobe19,
If you are running a v2.3.1 shop and you are referred to a vRC2a add on, the idea is that you will need to update the add on for use with v2.3.1. I suggest you look at the phplot.php file differences and then incorporate the required code to run the banner slider into the original v2.3.1 file.
Chris
If you are running a v2.3.1 shop and you are referred to a vRC2a add on, the idea is that you will need to update the add on for use with v2.3.1. I suggest you look at the phplot.php file differences and then incorporate the required code to run the banner slider into the original v2.3.1 file.
Chris
#3
Posted 30 January 2012 - 12:35 AM
I use v2.2 rc2a.I deleted all oscommerce files and installed again and also installed the addon i mentioned earlier.The result is the same but error masage is longer this time
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
Warning: imagefontheight() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 675
Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.phpon line 680
Warning: imagestring() expects parameter 2 to be long, string given in /home/freeus78/public_html/admin/includes/classes/phplot.php on line 689
#4
Posted 30 January 2012 - 01:32 AM
We can safely say the problem is most likly with the add-on either the instructions or they were followed incorrectly, since phplot.php is works as a standard oscommerce file.
Edited by NodsDorf, 30 January 2012 - 01:45 AM.
#6
Posted 30 January 2012 - 01:56 AM
they have different sizes.I uploaded files.phplot1 is default phplot is the one with the addon
Attached Files
#7
Posted 30 January 2012 - 11:37 AM
All you have to do is "type caste" the variable.
For instance line 675:
Becomes:
Now add the (int) in the same place on all the other lines.
It's not rocket science....
For instance line 675:
$which_ypos = $which_ypos - ImageFontHeight($which_font);
Becomes:
$which_ypos = $which_ypos - ImageFontHeight( (int)$which_font);
Now add the (int) in the same place on all the other lines.
It's not rocket science....
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >










