Warning: getimagesize - Forum | JoomShaper
Solved SP Page Builder

Warning: getimagesize

Asked by Marco 4 years ago Last activity 4 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

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

We have fix already, added to 3.8.2 update.

10 more replies

Toufiq Senior Staff

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

How

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}
Toufiq Senior Staff

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

Toufiq Senior Staff

Developer team will fix it as soon as possible.

How

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

Toufiq Senior Staff

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

How

When 3.8.2 will be available for download?

Paul Frankowski Senior Staff
4 years ago · edited

Tomorrow

Toufiq Senior Staff

I hope today or tomorrow. Thanks

Log in to reply.