Jump to content
WebFlake
  • 0

After Upgrade to 4.3.3 I got error in Gallery Category


Yogioh

Question

After Upgrade to 4.3.3  I got error in Gallery Category when try to viewing images i got this

JdXF6fZ.jpg

 

[[Template gallery/front/view/imageFrame is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

 

I disabled all customizations and runs support tool and restored original theme but the problem still appear  from Category  also try to clear cache

 

if you try to open any image from category you will got this message above

http://mazakony.com/forums/gallery/category/2-خلفيات-مسلسلات-وبرامج-رمضان-2018/

 

if i open any image from gallery direct  from  New Images it open 

 

http://mazakony.com/forums/gallery/

 

Do anybody know how to fix this issue and many thanks for all staff and this great site

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I found the PHP code for the display of images; /forums/applications/gallery/modules/front/view.php. Search for "display" or "lightbox" and find the code for the display of images. See if there is any broken code.

	/* Display */
		if( \IPS\Request::i()->isAjax() && isset( \IPS\Request::i()->browse ) )
		{
			$return = array(
				'title' => htmlspecialchars( $this->image->mapped('title'), ENT_DISALLOWED | ENT_QUOTES, 'UTF-8', FALSE ),
				'image' => \IPS\Request::i()->lightbox ? \IPS\Theme::i()->getTemplate( 'view' )->imageLightboxFrame( $this->image ) : \IPS\Theme::i()->getTemplate( 'view' )->imageFrame( $this->image ),
				'info' => \IPS\Request::i()->lightbox ? \IPS\Theme::i()->getTemplate( 'view' )->imageLightboxInfo( $this->image, $commentsAndReviews ) : \IPS\Theme::i()->getTemplate( 'view' )->imageInfo( $this->image )
			);

			if( $this->image->directContainer()->allow_comments )
			{
				$return['comments'] = $commentsAndReviews;
			}

			\IPS\Output::i()->json( $return );
		}

 

  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

  • 0

 

35 minutes ago, Jeffrey said:

I found the PHP code for the display of images; /forums/applications/gallery/modules/front/view.php. Search for "display" or "lightbox" and find the code for the display of images. See if there is any broken code.


	/* Display */
		if( \IPS\Request::i()->isAjax() && isset( \IPS\Request::i()->browse ) )
		{
			$return = array(
				'title' => htmlspecialchars( $this->image->mapped('title'), ENT_DISALLOWED | ENT_QUOTES, 'UTF-8', FALSE ),
				'image' => \IPS\Request::i()->lightbox ? \IPS\Theme::i()->getTemplate( 'view' )->imageLightboxFrame( $this->image ) : \IPS\Theme::i()->getTemplate( 'view' )->imageFrame( $this->image ),
				'info' => \IPS\Request::i()->lightbox ? \IPS\Theme::i()->getTemplate( 'view' )->imageLightboxInfo( $this->image, $commentsAndReviews ) : \IPS\Theme::i()->getTemplate( 'view' )->imageInfo( $this->image )
			);

			if( $this->image->directContainer()->allow_comments )
			{
				$return['comments'] = $commentsAndReviews;
			}

			\IPS\Output::i()->json( $return );
		}

 

 

 

I replaced your code with code in view.php  and nothing changed before upgrade it was works perfect on version 4.3.2

 

 

 

Edited by Yogioh
Link to comment
Share on other sites

  • 0
The question(s) in this support topic have been answered and the topic author has resolved their issue. This topic is now closed. If you have other questions, please open a new topic.
  • Like 1
  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...