en Jump to content

Recommended Posts

Hello,

when I want to setup module I have this error: Do you know whats wrong please?

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/user00830/havita.cz/www/modules/blockadvertmulti/blockadvertmulti_bo.tpl" on line 14 "{include file="./blockadvertmulti_cfg.tpl" }" - Unexpected " }", expected one of: "}" , " "' in /home/user00830/havita.cz/www/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 /home/user00830/havita.cz/www/tools/smarty/sysplugins/smarty_internal_templateparser.php(2855): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/user00830/havita.cz/www/tools/smarty/sysplugins/smarty_internal_templateparser.php(2920): Smarty_Internal_Templateparser->yy_syntax_error(10, ' }') #2 /home/user00830/havita.cz/www/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(51): Smarty_Internal_Templateparser->doParse(10, ' }') #3 /home/user00830/havita.cz/www/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(82): Smarty_Internal_SmartyTemplateCompiler->doCompile( in /home/user00830/havita.cz/www/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 431

Share this post


Link to post
Share on other sites

Hi all!!! And TY felibv for the module!

I have a problem, when I want to configure the module i get a blank page. (same for 0.10.1 and 0.10.0 no with the old 0.9.1).

Prestashop version is 1.4.8.2, italian language, dir with 777 attribs.

 

Please help me...i love this module!

Share this post


Link to post
Share on other sites

Hi all,

 

I was having the same issue reported by havita, which i resolved by myself. There is an extra space before the closing '}'. removing the extra space will resolve the error. How ever i'm facing another error. It gives me following error:

 

Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file './blockadvertmulti_cfg.tpl'' in D:\VertrigoServ\www\prestashop147\tools\smarty\sysplugins\smarty_internal_template.php on line 163

 

I'm installing this on Windows system so there could not be any issue of permissions.

 

Any help would by appreciated.

Share this post


Link to post
Share on other sites

Hi all,

 

I was having the same issue reported by havita, which i resolved by myself. There is an extra space before the closing '}'. removing the extra space will resolve the error. How ever i'm facing another error. It gives me following error:

 

Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file './blockadvertmulti_cfg.tpl'' in D:\VertrigoServ\www\prestashop147\tools\smarty\sysplugins\smarty_internal_template.php on line 163

 

I'm installing this on Windows system so there could not be any issue of permissions.

 

Any help would by appreciated.

 

Salil et PEPPE83

 

You can get ride off this error by changing in blockadvertmulti_bo.tpl lines 14 and more this way:

{include file="../modules/blockadvertmulti/blockadvertmulti_cfg.tpl"}

instead of {include file="./blockadvertmulti_cfg.tpl"}

 

Same thing in blockadvertmulti_cfg.tpl on line 13

;)

Share this post


Link to post
Share on other sites

Salil et PEPPE83

 

You can get ride off this error by changing in blockadvertmulti_bo.tpl lines 14 and more this way:

{include file="../modules/blockadvertmulti/blockadvertmulti_cfg.tpl"}

instead of {include file="./blockadvertmulti_cfg.tpl"}

 

Same thing in blockadvertmulti_cfg.tpl on line 13

;)

 

TY but my problem is not solved....when i click on "configure" on the module i get a blank page....i think is a language problem... :(

how i enable a debug mode?

Edited by PEPPE83

Share this post


Link to post
Share on other sites

Hi all,

Now available for download the new module for Prestashop "blockadvertmulti v0.10" that incorporates improvements over my previous module "bannermanager v0.9.1".

Blockadvertmulti development will continue to improve with the help of the community.

 

Excellent module, thank you very much for this! :)

Share this post


Link to post
Share on other sites

HI Felibv,

 

First of all great module that save made my whole day googling worth. :rolleyes:

 

Just One thing to confirm haven't you resize the images while uploading them?

 

For the quick work i have modify following css rules in "blockadvertmulti.css "

 

 

p.advmulti img {

display:block;

max-width: 150px;

margin-bottom: 10px;

max-height: 100px;

}

 

 

Also i am getting this error

 

 

"[PrestaShop] Fatal error in module 421fa0b23be53bb582c6491dbdb9ce27dc8a22a1.file.blockadvertmulti_cfg.tpl:

Trying to get property of non-object"

 

FYI I am using prestashop1.5.3.1

Share this post


Link to post
Share on other sites

This module is great, the only problem is that i get this error:

Warning: Function addCSS() is deprecated in /home/xxxx/xxxx/xxxx/public_html/modules/blockadvertmulti/blockadvertmulti.php on line 260

in /home/xxxx/xxxx/xxxx/public_html/classes/Tools.php on line 1777

 

How do i solve this?

Edited by DrankenWebshop

Share this post


Link to post
Share on other sites

Hi felibv, Love the Module!! It works great. Is it possible to post ads side by side instead of

beneath each other in de homebanner?

Share this post


Link to post
Share on other sites

@peppe83

 

try to this patch: unzip and change the original

 

-blockadvertmulti_cfg

-blockadvertmulti_bo

 

in the module folder, with this in attachment

 

Ciroco05

 

GRAZIE Ora funziona correttamente!

TY Now it work!

 

Please write your modification for future update!

Share this post


Link to post
Share on other sites

Hi i have Presta Shop 1.5.3.1

 

and i got following error:

 

Warning: Function addCSS() is deprecated inC:\webserver\htdocs\www\pinocchio\amriswil\modules\blockadvertmulti\blockadvertmulti.php on line 260

in C:\webserver\htdocs\www\pinocchio\amriswil\classes\Tools.php on line 1777

 

can anyone help me ?

Thx

Share this post


Link to post
Share on other sites

Hi i have Presta Shop 1.5.3.1

 

and i got following error:

 

Warning: Function addCSS() is deprecated inC:\webserver\htdocs\www\pinocchio\amriswil\modules\blockadvertmulti\blockadvertmulti.php on line 260

in C:\webserver\htdocs\www\pinocchio\amriswil\classes\Tools.php on line 1777

 

can anyone help me ?

Thx

 

I have the same problem, I think it is because it is designed for 1.4... The next update will include PS 1.5 compatibility. Altough, I can't find anymore where I read that...

Share this post


Link to post
Share on other sites

ok bad :-( is there another free module to display a banner as jpg for 1.5 ?

Edited by Noise

Share this post


Link to post
Share on other sites

Hi,

 

Thank you for making this free :).

 

I just updated to prestashop 1.5.4 ( Newest version)... And I'm having this error every time I try to add in a new banner. Can anyone direct me how to fix this?

 

Thank You

 

Error Message, when adding a new banner:

 

[PrestaShop] Fatal error in module blockadvertmulti:

Call to undefined function checkImage()

Share this post


Link to post
Share on other sites

Hi,

 

thanks for this great module.

I have a problem with displaying the block (see img), because it is floating when height of the page is smaller than height of the sidebar. Could you pls help me?

screenshot.jpg

Share this post


Link to post
Share on other sites

Hi,

 

Thank you for making this free :).

 

I just updated to prestashop 1.5.4 ( Newest version)... And I'm having this error every time I try to add in a new banner. Can anyone direct me how to fix this?

 

Thank You

 

Error Message, when adding a new banner:

 

[PrestaShop] Fatal error in module blockadvertmulti:

Call to undefined function checkImage()

 

I have the same problem:

[PrestaShop] Fatal error in module blockadvertmulti:

Call to undefined function checkImage()

 

What can be done?

Thanks!

Share this post


Link to post
Share on other sites

Awesome Module! It was works fine in 1.4 now I have same problem like guys above:

 

[PrestaShop] Fatal error in module bannermanager:
Call to undefined function checkImage()

Share this post


Link to post
Share on other sites

Hello,

 

Same problem here on 1.5.4 :

 

[PrestaShop] Fatal error in module blockadvertmulti:

Call to undefined function checkImage()

 

Anyone knows if it works with 1.5.1 ?

 

Thank you.

Share this post


Link to post
Share on other sites

matros

 

 

Hi,

 

thanks for this great module.

I have a problem with displaying the block (see img), because it is floating when height of the page is smaller than height of the sidebar. Could you pls help me?

screenshot.jpg

 

Having the exact same problem here, I'm sure there is a simple fix to this. Can anyone shed some light?

Share this post


Link to post
Share on other sites

Regarding the problem with 1.5.4 :

 

[PrestaShop] Fatal error in module blockadvertmulti:

Call to undefined function checkImage()

 

I solved it by editing php file blockadvertmulti.php

 

Find and replace the word:

 

CheckImage

 

with:

 

ImageManager::validateUpload

 

 

 

It worked for me.

Share this post


Link to post
Share on other sites

I solved it by editing php file blockadvertmulti.php

 

Find and replace the word:

 

CheckImage

 

with:

 

ImageManager::validateUpload

 

It worked for me.

 

For me also ! Thank you so much for this trick !

Share this post


Link to post
Share on other sites

Hi,

 

thanks for this great module.

I have a problem with displaying the block (see img), because it is floating when height of the page is smaller than height of the sidebar. Could you pls help me?

screenshot.jpg

 

Čauko,

 

skús to čo ja :

 

-najdi si priečinok "/modules/blockadvertmulti/css/"

-otvor si blockadvertmulti.css

-prepíš kód následovne:

 

div.blockadvmulti {
height: auto;
float:left;
padding-bottom: 400px;
}

 

... mne pomohle tak snad aj tebe ;-)

 

ENGLISH

 

rewrite code in blockadvertmulti.css to this:

 

div.blockadvmulti {
height: auto;
float:left;
padding-bottom: 400px;
}

Share this post


Link to post
Share on other sites

Hi,

 

Thanks to felibv for this great module :) and thanks to dzpssq for the solution :

 

editing php file blockadvertmulti.php,
find and replace the word: checkImage
with: ImageManager::validateUpload

 

, it work very fine ^_^

 

Best regards,

Philippe

Edited by Graphileom

Share this post


Link to post
Share on other sites

Thanks for this great module!

 

I wondering if it is possible to add a custom .tpl file for the left column hook? I tried below code but it didn't work. Any suggestions?

 

From:

function hookLeftColumn($params)
{
   return $this->_processHook( $params, 2);
}

 

To:

function hookLeftColumn($params)
{
   return $this->_processHook( $params, 2);
   return $this->display( dirname(__FILE__), 'blockadvertmultileft.tpl');
}

Edited by piqsel

Share this post


Link to post
Share on other sites
That's beacuse the first return is stoping your line. comment or remove the _proccessHook to get your line to work.

 

Thank you for trying to help me!

 

I tried commenting out the the first return but it's not working. If you look at the original code below, I also tried to commenting out line "return $this->display( dirname(__FILE__), 'blockadvertmulti.tpl');" but thats not working either. Any suggestions? :)

 

function hookLeftColumn($params)
{
return $this->_processHook( $params, 2);
}

function _processHook( $params, $hook ) {
 global $cookie, $smarty;
 if ($this->countBanners($hook)) {
  $smarty->assign(array( 'hook' => $hook
	 , 'banners' => $this->getBanners($hook, false)
	 , 'img_path' => $this->img_wpath
  ));
  return $this->display( dirname(__FILE__), 'blockadvertmulti.tpl');
 } else return '';
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More