As this https://www.joomlart.com/forums/d/39124-single-article-view-crash has been closed with no proper solution, it is not about the PHP version, it is the code itself that has a pretty obvious bug:

$size = @getimagesize($og_image);
if (!empty($size)) {
	$document->setMetaData( 'og:image:width', $size[0] );
	$document->setMetaData( 'og:image:height', $size[1] );
}

here you use the full article image as og:image but you don't check if that actually exists.

Solution for other people that are experiencing the same issue, which is quite likely:

if (!empty($og_image)) {
	$size = @getimagesize($og_image);
	$document->setMetaData( 'og:image:width', $size[0] );
	$document->setMetaData( 'og:image:height', $size[1] );
}

    alfredopacino
    Hi
    Can you edit fields in first post and submit a temp super user login of your site.
    I checked it with dev team on this but the issue was not replicated our side.

    alfredopacino
    Hi
    Our dev team requested the site details as issue not found on our installation.
    Kindly submit the information so team can check it on your site to check the problem.

    I don't have the slightest clue on how your Service desk works.

    • Install Joomla 4.0.5
    • install gk_fit_template_2.0.2
    • create an article
    • make the home menu item pointing to that article
    • verify it works fine on Cassiopeia
    • set gk_fit as default template
    • check again your frontend

      alfredopacino
      Hi
      I have send the details to concern team on this and update you.
      If it not work we have to check it on your site.

      alfredopacino
      Hi
      Our dev fixed the issue in the template package and it is included in the latest update of the template.

      Regards

      Write a Reply...
      You need to Login to view replies.