*

leuname07

  • ***
  • 53 posts
Error with print
« on: April 30, 2019, 11:06:03 AM »
Hello,

When i look an ad without pictures, i have an error with the function print :

Warning: htmlspecialchars() expects parameter 1 to be string, array given in oc-content/plugins/print_ad/index.php on line 74

Marked as best answer by leuname07 on April 30, 2019, 12:20:44 PM
*

MB Themes

Re: Error with print
« Reply #1 on: April 30, 2019, 11:57:03 AM »
In that file, find:
Code: [Select]
<input type="hidden" name="image_path" value="'.htmlspecialchars($image_path).'">
change into:
Code: [Select]
<input type="hidden" name="image_path" value="'.htmlspecialchars(@$image_path[0]).'">
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

leuname07

  • ***
  • 53 posts
Re: Error with print
« Reply #2 on: April 30, 2019, 12:09:37 PM »
It was not OK.

But with your help i change the line 74

Code: [Select]
<input type="hidden" name="image_id" value="'.htmlspecialchars($image_id).'">

with this

Code: [Select]
<input type="hidden" name="image_id" value="'.htmlspecialchars(@$image_id[0]).'">
Thank you for your help
« Last Edit: April 30, 2019, 12:20:39 PM by leuname07 »