Undefined variable: module_position on Modules

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeUndefined variable: module_position on Modules

This topic has been marked as not resolved.

I’ve this message when i insert a module like ‘lastest’:

Notice: Undefined variable: module_position in /homez.139/pierreyvqv/lolizakkacom/catalog/view/theme/shoppica/template/module/latest.tpl on line 1

latest.tpl details:


<?php if ($module_position == 'content_top' || $module_position == 'content_bottom'): ?>
  <?php require 'latest_content.tpl'; ?>
<?php else: ?>
  <?php require 'latest_column.tpl'; ?>
<?php endif; ?>

Module is at the place i choose but it’s always in column style (like list mode). Maybe the bad request for var module_position in the controller.

Please help me. Sorry for my english =)

August 24, 2011 at 7:29 pm #1059

Good news everyone =) Solved!

when i upload shoppica i don’t overwrite ‘/system/engine/controller.php’

You can manualy add after:


$controller = new $class($this->registry);

This lines:

            if (substr($child, 0, 6) == 'module') {
                $controller->data['module_instance']  = $args;
                if (is_array($args) && isset($args['position'])) {
                    // 1.5.1+
                    $controller->data['module_position']  = $args['position'];
                    $controller->data['module_layout_id'] = $args['layout_id'];
                } else {
                    // 1.5.0.5
                    $controller->data['module_position']  = $this->config->get(substr($child, 7) . '_' . $args . '_position');
                    $controller->data['module_layout_id'] = $this->config->get(substr($child, 7) . '_' . $args . '_layout_id');
                }
            }

Sorry, i do not modify opencart file, i always to vqmod modifications ^^

August 24, 2011 at 8:15 pm #1063

Glad, you’ve managed to solve this :)

August 25, 2011 at 6:52 pm #1115

When I try to make these manual adjustments….I get a 550 controller.php: Permission denied
Critical file transfer error. Please advise. I also have the same problem as listed above. I have two of these messages on my front page.

One regarding the 1
Notice: Undefined variable: module_position in
for the featured.tpl file

and also for the carousel.tpl

Please advise.

  • This reply was modified 4480 days ago by  Nevaquit.
  • This reply was modified 4480 days ago by  Nevaquit.
January 14, 2012 at 6:52 pm #5218

I get a 550 controller.php: Permission denied
Critical file transfer error.

@Nevaquit – please, contact your hosting provider about file permission errors. You need to override the files, as described above. Be sure to download the latest version of Shoppica from your themeforest account.

January 15, 2012 at 2:32 pm #5237
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.