Announcement

  •  » Extensions
  •  » 2.6.1 working plugins - or not

#16 2014-03-07 14:31:55

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: 2.6.1 working plugins - or not

My mistake, I had forgotten to implement this [Subversion] r27587

Offline

 

#17 2014-03-10 12:31:31

JAK
Member
2013-07-07
62

Re: 2.6.1 working plugins - or not

Thought I'd try the SimpeNG given it's an updated version of Simple Grey, but it gives the following error:


Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "./themes/simpleng/template/header.tpl" on line 46 "{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}" unclosed {foreach} tag' in /share/MD0_DATA/Web/piwigo/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /share/MD0_DATA/Web/piwigo/include/smarty/libs/sysplugins/smarty_internal_compilebase.php(166): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unclosed {forea...') #1 /share/MD0_DATA/Web/piwigo/include/smarty/libs/sysplugins/smarty_internal_compile_if.php(197): Smarty_Internal_CompileBase->closeTag(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 /share/MD0_DATA/Web/piwigo/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(473): Smarty_Internal_Compile_Ifclose->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #3 /share/MD0_DATA/Web/piwigo/include/smarty/libs/sysp in /share/MD0_DATA/Web/piwigo/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 665

Happily gone back to Simple Grey but thought you may wish to be aware.

Offline

 

#18 2014-03-10 13:22:50

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: 2.6.1 working plugins - or not

Simple and SimpleNG are completely separated.

There is a change to apply to fix this bug on SimpleNG I think: [Github] simple-theme-piwigo commit 64ac4fd0 give it a try

Offline

 

#19 2014-03-10 17:45:18

JAK
Member
2013-07-07
62

Re: 2.6.1 working plugins - or not

Thanks, yes that small change did get the SimpleNG theme opening without that error, however there still seem to be issues revealed:
1. The guestbook isn't working.
2. The OpenStreet maps are not showing (maybe they're not compatible?)

Last edited by JAK (2014-03-10 23:13:27)

Offline

 

#20 2014-03-11 13:28:43

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: 2.6.1 working plugins - or not

OK, here is my modified version of SimpleNG:

Code:

diff -ru simpleng/template/header.tpl /home/pierrick/public_html/piwigo/dev/branches/2.6/themes/simpleng/template/header.tpl
--- simpleng/template/header.tpl        2013-07-14 22:41:38.000000000 +0200
+++ /home/pierrick/public_html/piwigo/dev/branches/2.6/themes/simpleng/template/header.tpl      2014-03-11 12:12:56.000000000 +0100
@@ -39,7 +39,7 @@
   {foreach from=$themes item=theme}
   {if $theme.load_css}
     {assign var="csstheme" value="themes/`$theme.id`/theme.css"}
-    { if file_exists($csstheme) }
+    {if file_exists($csstheme)}
       {combine_css path="themes/`$theme.id`/theme.css" order=10}
     {/if}
   {/if}
diff -ru simpleng/template/index.tpl /home/pierrick/public_html/piwigo/dev/branches/2.6/themes/simpleng/template/index.tpl
--- simpleng/template/index.tpl 2013-07-14 22:41:38.000000000 +0200
+++ /home/pierrick/public_html/piwigo/dev/branches/2.6/themes/simpleng/template/index.tpl       2014-03-11 12:49:54.000000000 +0100
@@ -70,6 +70,8 @@
 </div>
 {/if}
 
+{if !empty($CONTENT)}{$CONTENT}{/if}
+
 {if !empty($CATEGORIES)}{$CATEGORIES}{/if}
 {if !empty($cats_navbar)}
   {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$cats_navbar}

[extension by rvelices] RV Maps & Earth and [extension by xbgmsharp] piwigo-openstreetmap work fine but the icon is missing!

Offline

 

#21 2014-03-12 01:08:10

JAK
Member
2013-07-07
62

Re: 2.6.1 working plugins - or not

Thanks for that but cannot see which file you've changed. Is it one in the themes/simpleng/template folder?

Offline

 

#22 2014-03-19 23:05:03

saimon
Member
2006-12-04
184

Re: 2.6.1 working plugins - or not

Thanks plg, a new version is available with the fixes

Offline

 
  •  » Extensions
  •  » 2.6.1 working plugins - or not

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact