Post by krispol » Fri Feb 19, 2016 8:45 am

Hi

Can someone help me out or maybe has encountered the same problem and can give advice?

I have two categories set up and linked in the menu. Everything worked fine, until i tried to install an extension that adds home button to the menu. After that my category links on the menu stopped working, I get this line when I click on the link and try to go to category page:
Parse error: syntax error, unexpected end of file in /home/r174997/domains/webster.ee/public_html/system/storage/modification/catalog/view/theme/default/template/product/category.tpl on line 114

I disabled the extension I installed, then also removed it. Refreshed everything and cleared cashe, but nothing. Still get the error :'(

Since it points to the category file (which I haven't even touched), here is the code from the file just in case:

Code: Select all

<?php echo $header; ?>
<div class="container">
  <ul class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
    <?php } ?>
  </ul>
  <div class="row"><?php echo $column_left; ?>
    <?php if ($column_left && $column_right) { ?>
    <?php $class = 'col-sm-6'; ?>
    <?php } elseif ($column_left || $column_right) { ?>
    <?php $class = 'col-sm-9'; ?>
    <?php } else { ?>
    <?php $class = 'col-sm-12'; ?>
    <?php } ?>
    <div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?>
      <h2><?php echo $heading_title; ?></h2>
      <?php if ($thumb || $description) { ?>
      <div class="row">
        <?php if ($thumb) { ?>
        <div class="col-sm-2"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>" class="img-thumbnail" /></div>
        <?php } ?>
        <?php if ($description) { ?>
        <div class="col-sm-10"><?php echo $description; ?></div>
        <?php } ?>
      </div>
      <hr>
      <?php } ?>
      <?php if ($categories) { ?>
      <h3><?php echo $text_refine; ?></h3>
      <?php if (count($categories) <= 5) { ?>
      <div class="row">
        <div class="col-sm-3">
          <ul>
            <?php foreach ($categories as $category) { ?>
            <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
            <?php } ?>
          </ul>
        </div>
      </div>
      <?php } else { ?>
      <div class="row">
        <?php foreach (array_chunk($categories, ceil(count($categories) / 4)) as $categories) { ?>
        <div class="col-sm-3">
          <ul>
            <?php foreach ($categories as $category) { ?>
            <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
            <?php } ?>
          </ul>
        </div>
        <?php } ?>
      </div>
      
      <div class="row">
        <?php foreach ($products as $product) { ?>
        <div class="product-layout product-list col-xs-12">
          <div class="product-thumb">
            <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>
            <div>
              <div class="caption">
                <h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
                <p><?php echo $product['description']; ?></p>
                <?php if ($product['rating']) { ?>
                <div class="rating">
                  <?php for ($i = 1; $i <= 5; $i++) { ?>
                  <?php if ($product['rating'] < $i) { ?>
                  <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
                  <?php } else { ?>
                  <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
                  <?php } ?>
                  <?php } ?>
                </div>
                <?php } ?>
                <?php if ($product['price']) { ?>
                <p class="price">
                  <?php if (!$product['special']) { ?>
                  <?php echo $product['price']; ?>
                  <?php } else { ?>
                  
			<span class="price-new" style="color: #FF0000;"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>
			
                  <?php } ?>
                  <?php if ($product['tax']) { ?>
                  <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
                  <?php } ?>
                </p>
                <?php } ?>
              </div>
              <div class="button-group">
                <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
                
                
              </div>
            </div>
          </div>
        </div>
        <?php } ?>
      </div>
      <div class="row">
        <div class="col-sm-6 text-left"><?php echo $pagination; ?></div>
        <div class="col-sm-6 text-right"><?php echo $results; ?></div>
      </div>
      <?php } ?>
      <?php if (!$categories && !$products) { ?>
      <p><?php echo $text_empty; ?></p>
      <div class="buttons">
        <div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div>
      </div>
      <?php } ?>
      <?php echo $content_bottom; ?></div>
    <?php echo $column_right; ?></div>
</div>
<?php echo $footer; ?>
I appreciate all the help and advice in advance!

Newbie

Posts

Joined
Fri Feb 19, 2016 8:36 am

Post by Randem » Fri Feb 19, 2016 2:41 pm

Hi krispol,

You probably installed something that replaced core OpenCart files and the only way to remove it is to replace the files or re-upload all the files.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by krispol » Sat Feb 20, 2016 6:35 pm

Thank You for the suggestion. I sorted it out :)

Just deleted the Modifications folder through ftp (system -> storage -> modifications). Made a backup first just in case.
Then went to admin page, cleared & refreshed the Modifications page. Menu links started working again :) I guess it helped to fully delete the remains of the faulty extension or something of sorts :)


Cheers,

Newbie

Posts

Joined
Fri Feb 19, 2016 8:36 am

Post by Zvezdo » Mon Apr 04, 2016 1:43 am

I have same error but your solution does not work deleting folder
Here is my error:
Parse error: syntax error, unexpected end of file in /system/storage/modification/catalog/view/theme/journal2/template/product/category.tpl on line 326
and I uploaded my file as I can't paste code too long :?
<iframe src="//pastebin.com/embed_iframe/MVd9Zmwa" style="border:none;width:100%"></iframe>

Newbie

Posts

Joined
Mon Apr 04, 2016 1:31 am

Post by Randem » Tue Apr 05, 2016 11:12 am

Zvezdo,

You may be suffering from a corrupted tpl file/ Check you file against an original file to see if there are differences. Also upload it in binary format to stop character conversion errors on upload.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by Zvezdo » Thu Apr 07, 2016 1:08 am

I checked file and it's different from one in theme folder but I made restore from admin panel .sql file and the folder is now gone but site started working so I'm not sure what to do.... may be just leave it that way

Newbie

Posts

Joined
Mon Apr 04, 2016 1:31 am
Who is online

Users browsing this forum: No registered users and 9 guests