Author Topic: Test Responsive FolderGallery (RFG) 0.75  (Read 273 times)

Offline henri

  • Posts: 134
Test Responsive FolderGallery (RFG) 0.75
« on: December 22, 2018, 09:26:45 AM »
Installation went without problems.
When testing module Responsive FolderGallery (RFG) 0.75 I get the following error message in WebsiteBaker 2.12.1 r188 when I go to the website itself from admin section.

There was an uncatched exception
Class 'Template' not found
in line (520) or (/ modules / responsiveFG / view.php):

Offline dbs

  • Betatester
  • **
  • Posts: 7730
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #1 on: December 22, 2018, 09:33:51 AM »
Hi, maybe this helps: https://forum.WebsiteBaker.org/index.php/topic,31088.msg216743.html#msg216743

Before your line 520 in /modules/responsiveFG/view.php
Code: [Select]
if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');}
$template = new Template( $template_dir );

Offline henri

  • Posts: 134
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #2 on: December 22, 2018, 11:25:27 AM »
Hello dbs
This code was on line 520:
if (file_exists(dirname(__FILE__) . '/templates/thumbstyle' . $thumb_style . '.htt')) {
    $viewTemplate = 'thumbstyle' .  $thumb_style . '.htt';
    $t = new Template(dirname(__FILE__) . '/templates', 'remove');
} else {
   die();
}

I have inserted your proposed code for line 520:
if (file_exists(dirname(__FILE__) . '/templates/thumbstyle' . $thumb_style . '.htt')) {
    $viewTemplate = 'thumbstyle' .  $thumb_style . '.htt';
   if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');}
$template = new Template( $template_dir );
    $t = new Template(dirname(__FILE__) . '/templates', 'remove');
} else {
   die();
}

Now I get error message:
Template Error: set_root: is not a directory.
Halted.

I do not know if I did well

Offline dbs

  • Betatester
  • **
  • Posts: 7730
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #3 on: December 22, 2018, 12:01:19 PM »
Oh, sorry, "before" was not exatly before.
You can add the two lines somewhere at the beginning of view.php.
Hope it work.


Offline henri

  • Posts: 134
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #4 on: December 22, 2018, 12:42:51 PM »
Hello dbs

I place your code on line 2 after <? Php
then I get the same error message:
Template Error: set_root: is not a directory.
Halted.

I place your code for <? Php
then I get the following error message:
if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');} $template = new Template( $template_dir ); There was an uncatched exception
Class 'Template' not found
in line (522) of (/modules/responsiveFG/view.php):

Offline dbs

  • Betatester
  • **
  • Posts: 7730
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #5 on: December 22, 2018, 12:59:28 PM »
After <?php is right because it is php code.
Seems something with your backend theme is wrong.
Can you tell some more details about your system? (wb version, php version, backend theme)

Offline henri

  • Posts: 134
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #6 on: December 22, 2018, 01:11:02 PM »
Hello dbs

WebsiteBaker Version: 2.12.1 -r188
PHP-Version: 7.2.11
Website Baker Default Theme version 1.3.14

Offline henri

  • Posts: 134
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #7 on: December 22, 2018, 01:27:05 PM »
Hello dbs

Responsive FolderGallery (RFG) 0.75 works fine in the following version

WebsiteBaker Version: 2.11.0 -r79
PHP-Version: 7.2.11
Website Baker Default Theme version 1.3.2

Offline dbs

  • Betatester
  • **
  • Posts: 7730
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #8 on: December 22, 2018, 01:44:09 PM »
Next try. Remove the second line, use only the first.
Code: [Select]
if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');}
Maybe now a notice about fredit is in errorlog.
Solution: permissioncheck.php line 8 should looks like this
Code: [Select]
$fredit = isset($fredit) ? (int)@$aRequestVars['fredit'] : '';  // >0 = frontend edit

Offline henri

  • Posts: 134
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #9 on: December 22, 2018, 02:04:19 PM »
Hello dbs

Now this code is added to line 2 of view.php
if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');}

I get the same error message again:
Template Error: set_root: is not a directory.
Halted.

In admin WebsiteBaker Error log shows no errors

Offline dbs

  • Betatester
  • **
  • Posts: 7730
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #10 on: December 22, 2018, 02:33:23 PM »
My test in WB 2.12.1 works.
In the info.php of the used frontend template i added this line to the others
Code: [Select]
$template_function   = 'template';But after removing this line the module work like before. So i don't know if it helps.

you have 2.11? i will try that later.

Offline henri

  • Posts: 134
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #11 on: December 22, 2018, 03:35:57 PM »
Hello dbs

Get the same error message

Offline dbs

  • Betatester
  • **
  • Posts: 7730
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #12 on: December 22, 2018, 05:08:30 PM »
This is version rFG 0.75.1. Tested in WB 2.11 & 2.12.1
with PHP 7.2 & 5.6. works.

If you have problems it seems not the FG is the problem.
Is it a new WB install?

I recommend taking the normal FG.
This rFG works strangely.

Offline henri

  • Posts: 134
Re: Test Responsive FolderGallery (RFG) 0.75
« Reply #13 on: December 22, 2018, 08:54:53 PM »
Hello dbs

Version rFG 0.75.1 works perfectly no error messages.

WB 2.12.1 is a completely new installation

I now have rFG, Foldergallery, Minigallery and Another Image Gallery in WB 2.12.1 and they all work fine.

Thank you for the assistance.

 

postern-length