Jump to content
thirty bees forum

Question

Posted

So I wanted to download this module and use it on my site... 
However when I click download, it takes me to a Github page... 

I have no clue what to do with a GitHub page. 

So, any suggestions?

8 answers to this question

Recommended Posts

  • 0
Posted

Well, that didn't work. 

 

Source file: modules/blockadvertising/blockadvertising.php

198:                }
199:            }
200:
201:            // If the link is not set, then delete it in order to use the next default value (either the global value or the group value)
202:            if ($link = Tools::getValue('adv_link')) {
203:                Configuration::updateValue('BLOCKADVERT_LINK', $link);
204:            } elseif (Shop::getContext() == Shop::CONTEXT_SHOP || Shop::getContext() == Shop::CONTEXT_GROUP) {
205:                Configuration::deleteFromContext('BLOCKADVERT_LINK');
206:            }
207:
208:            // If the title is not set, then delete it in order to use the next default value (either the global value or the group value)
209:            if ($title = Tools::getValue('adv_title')) {
210:                Configuration::updateValue('BLOCKADVERT_TITLE', $title);
211:            } elseif (Shop::getContext() == Shop::CONTEXT_SHOP || Shop::getContext() == Shop::CONTEXT_GROUP) {
212:                Configuration::deleteFromContext('BLOCKADVERT_TITLE');
213:            }
214:
215:            // Reset the module properties
216:            $this->initialize();
217:            $this->clearCache('blockadvertising.tpl');
218:
219:            if (!$errors) {
220:                Tools::redirectAdmin(AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&conf=6');
221:            }
222:            echo $this->displayError($errors);
223:        }
224:
225:    }
226:
227:    /**

Stack trace

1. modules/blockadvertising/blockadvertising.php:164 source BlockAdvertising->postProcess()
2. controllers/admin/AdminModulesController.php:1648 source BlockAdvertising->getContent()
3. controllers/admin/AdminModulesController.php:1511 source AdminModulesControllerCore->postProcessCallback()
4. classes/controller/Controller.php:197 source AdminModulesControllerCore->postProcess()
5. classes/Dispatcher.php:837 source ControllerCore->run()
6. admin123/index.php:63 source DispatcherCore->dispatch()
  • 0
Posted

There's a bug in this module on line 217. It should read

$this->_clearCache('blockadvertising.tpl');

Obviously, nobody is using that module, or at least never bothered to report this error on github.

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
×
×
  • Create New...