Warning: Getimagesize - Question | JoomShaper

Warning: Getimagesize

M

Marco

SP Page Builder 2 years ago

hi

when I upgrade the PHP from 7.4 to 8.0, something problem wrong, even I change the version to 7.4, it still not work, how can I fix it? thanks.

Warning: getimagesize(/images/2021/06/07/digital-print84.jpg): Failed to open stream: No such file or directory in /www/wwwroot/www.gaoaog.com/components/com_sppagebuilder/parser/addons.php on line 64

1
11 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #48206

We have fix already, added to 3.8.2 update.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #46559

Hi there,

Thanks for contacting us. Sorry for the inconvenience. I have checked your site but no problem found. Please stay with the PHP version 7.4.

-Thanks

0
How
How
Accepted Answer
2 years ago #46574

I have exact the same problem, probably after update to 3.8.1 today.

Warning: PHP Startup: failed to open stream: No such file or directory in /components/com_sppagebuilder/parser/addons.php on line 64

49  protected function get_image_dimension($src)
50  {
51      preg_match('/\__(.*?)\./', $src, $match);
52
53      if (count($match) > 1)
54      {
55          $dimension = explode('x', $match[1]);
56          return ['width="' . $dimension[0] . '"', 'height="' . $dimension[1] . '"'];
57      }
58
59      $validImageExtensions = ['jpg', 'jpeg', 'png'];
60      $extension = strtolower(pathinfo($src, PATHINFO_EXTENSION));
61
62      if (\in_array($extension, $validImageExtensions))
63      {
64          $dimension = \getimagesize($src);
65
66          if (!empty($dimension))
67          {
68              return ['width="' . $dimension[0] . '"', 'height="' . $dimension[1] . '"'];
69          }
70      }
71
72      return [];
73}
0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #46593

I have added our working board. I hope developer team check & make fix as soon as possible. Thanks

0
E
Elpi
Accepted Answer
2 years ago #46619

Hi,

I have the same issue. Updated Helix Framework and SP Pro today: https://prolabgd.com/

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #46622

Developer team will fix it as soon as possible.

0
How
How
Accepted Answer
2 years ago #46625

Temporary solution to hide errors: System > Global Configuration > Server > Error Reporting set to "Hide".

1
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #47353

Guys, Can you give me a live site administrator access? I want to re-check the issue.

Note: Don't forget to share your cpanel and administrator access via hidden content. Thanks

0
How
How
Accepted Answer
2 years ago #48273

When 3.8.2 will be available for download?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #48275

Tomorrow

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #48276

I hope today or tomorrow. Thanks

0