Post by ediiqzx » Thu Apr 18, 2019 5:52 pm

Hi guys! I want to mention that it's my first time using opencart, it looks nice and easy but I got into an error with a client.
He wanted to install facebook pixel into the website and while doing that, when I uploaded the .zip of this module I got the error below. Any ideea how can I solve this issue?

Code: Select all

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
OK
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="UTF-8" />
<title>Pagina nu a fost găsită!</title>
<base href="https://www.newagefashion.ro/admin/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<script type="text/javascript" src="view/javascript/jquery/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="view/javascript/bootstrap/js/bootstrap.min.js"></script>
<link href="view/stylesheet/bootstrap.css" type="text/css" rel="stylesheet" />
<link href="view/javascript/font-awesome/css/font-awesome.min.css" type="text/css" rel="stylesheet" />
<link href="view/javascript/summernote/summernote.css" rel="stylesheet" />
<script type="text/javascript" src="view/javascript/summernote/summernote.js"></script>
<script src="view/javascript/jquery/datetimepicker/moment.js" type="text/javascript"></script>
<script src="view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<link href="view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
<link type="text/css" href="view/stylesheet/stylesheet.css" rel="stylesheet" media="screen" />
<script src="view/javascript/common.js" type="text/javascript"></script>
</head>
<body>
<div id="container">
<header id="header" class="navbar navbar-static-top">
  <div class="navbar-header">
        <a type="button" id="button-menu" class="pull-left"><i class="fa fa-indent fa-lg"></i></a>
        <a href="https://www.newagefashion.ro/admin/index.php?route=common/dashboard&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW" class="navbar-brand"><img src="view/image/logo.png" alt="OpenCart" title="OpenCart" /></a></div>
    <ul class="nav pull-right">
    <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown"><span class="label label-danger pull-left">1</span> <i class="fa fa-bell fa-lg"></i></a>
      <ul class="dropdown-menu dropdown-menu-right alerts-dropdown">
        <li class="dropdown-header">Comenzi</li>
        <li><a href="https://www.newagefashion.ro/admin/index.php?route=sale/order&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW&amp;filter_order_status=5,1,2,12,3" style="display: block; overflow: auto;"><span class="label label-warning pull-right">9</span>În aşteptare</a></li>
        <li><a href="https://www.newagefashion.ro/admin/index.php?route=sale/order&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW&amp;filter_order_status=5,3"><span class="label label-success pull-right">9</span>Finalizat</a></li>
        <li><a href="https://www.newagefashion.ro/admin/index.php?route=sale/return&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><span class="label label-danger pull-right">1</span>Returnări</a></li>
        <li class="divider"></li>
        <li class="dropdown-header">Clienți</li>
        <li><a href="https://www.newagefashion.ro/admin/index.php?route=report/customer_online&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><span class="label label-success pull-right">7</span>Clienţi Online</a></li>
        <li><a href="https://www.newagefashion.ro/admin/index.php?route=customer/customer&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW&amp;filter_approved=0"><span class="label label-danger pull-right">0</span>În aşteptarea aprobării</a></li>
        <li class="divider"></li>
        <li class="dropdown-header">Produse</li>
        <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/product&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW&amp;filter_quantity=0"><span class="label label-danger pull-right">0</span>Nu sunt în stoc</a></li>
        <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/review&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW&amp;filter_status=0"><span class="label label-danger pull-right">0</span>Opinii</a></li>
        <li class="divider"></li>
        <li class="dropdown-header">Afiliați</li>
        <li><a href="https://www.newagefashion.ro/admin/index.php?route=marketing/affiliate&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW&amp;filter_approved=1"><span class="label label-danger pull-right">0</span>În aşteptarea aprobării</a></li>
      </ul>
    </li>
    <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-life-ring fa-lg"></i></a>
      <ul class="dropdown-menu dropdown-menu-right">
        <li class="dropdown-header">Magazine <i class="fa fa-shopping-cart"></i></li>
                <li><a href="https://www.newagefashion.ro/" target="_blank">New Age Fashion</a></li>
                <li class="divider"></li>
        <li class="dropdown-header">Ajutor <i class="fa fa-life-ring"></i></li>
        <li><a href="http://www.opencart.com" target="_blank">Pagina de start</a></li>
        <li><a href="http://docs.opencart.com" target="_blank">Documentație</a></li>
        <li><a href="http://forum.opencart.com" target="_blank">Forum OpenCart</a></li>
      </ul>
    </li>
    <li><a href="https://www.newagefashion.ro/admin/index.php?route=common/logout&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><span class="hidden-xs hidden-sm hidden-md">Deconectare</span> <i class="fa fa-sign-out fa-lg"></i></a></li>
  </ul>
  </header>
<nav id="column-left"><div id="profile">
  <div>
        <i class="fa fa-opencart"></i>
      </div>
  <div>
    <h4>Johnad Doe</h4>
    <small>Administrator</small>
  </div>
</div>
<ul id="menu">
  <li id="dashboard"><a href="https://www.newagefashion.ro/admin/index.php?route=common/dashboard&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><i class="fa fa-dashboard fa-fw"></i> <span>Panou General</span></a></li>
  <li id="catalog"><a class="parent"><i class="fa fa-tags fa-fw"></i> <span>Catalog</span></a>
    <ul>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/category&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Categorii</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/product&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Produse</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/recurring&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Abonamente</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/filter&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Filtre</a></li>
      <li><a class="parent">Atribute</a>
        <ul>
          <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/attribute&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Atribute</a></li>
          <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/attribute_group&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Grupuri Atribute</a></li>
        </ul>
      </li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/option&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Opțiuni</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/manufacturer&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Producători</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/download&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Download-uri</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/review&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Opinii</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=catalog/information&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Pagini Informaţii</a></li>
    </ul>
  </li>
  <li id="extension"><a class="parent"><i class="fa fa-puzzle-piece fa-fw"></i> <span>Extensii</span></a>
    <ul>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/installer&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Instalează Extensie</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/modification&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Modificări (OCMOD)</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/analytics&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Analizare Trafic</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/captcha&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Cod de verificare - Captcha</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/feed&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Feed-uri</a></li>

      <li><a href="https://www.newagefashion.ro/admin/index.php?route=module/complete_seo&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><img style="vertical-align:top" src="view/seo_package/img/icon.png"/> Complete SEO</a></li>
      

			<li><a href="https://www.newagefashion.ro/admin/index.php?route=module/pdf_invoice&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><img style="vertical-align:top" src="view/pdf_invoice_pro/img/icon.png"/> PDF Invoice Pro</a></li>
			
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/fraud&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Extensii Anti-Fraudă</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/module&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Module</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/payment&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Metode de plată</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/shipping&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Metode de Livrare</a></li>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=extension/total&amp;token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Totaluri comenzi</a></li>
          </ul>
  </li>
  <li id="design"><a class="parent"><i class="fa fa-television fa-fw"></i> <span>Design</span></a>
    <ul>
      <li><a href="https://www.newagefashion.ro/admin/index.php?route=design/layout&a

Newbie

Posts

Joined
Thu Apr 18, 2019 5:49 pm

Post by webdesires » Fri Apr 19, 2019 1:29 am

what module?

And you may be better off contacting the author of the module directly. We cant help you from the information you have provided.

Regards, WebDesires.
We are a team of developers in the UK - professional and friendly, message us or give us a call anytime and we will be happy to help.

Phone: +44 (0) 121 318 6336 - Web: webdesires.co.uk - Skype: WebDesires
OpenCart Support - OpenCart Web Development - Our OpenCart Plugins


User avatar
Active Member

Posts

Joined
Mon Sep 28, 2015 6:34 pm
Location - West Midlands, United Kingdom

Post by ediiqzx » Fri Apr 19, 2019 4:20 pm

The module is Facebook Ads Extension

Newbie

Posts

Joined
Thu Apr 18, 2019 5:49 pm

Post by cedcommerceteam » Sat Apr 27, 2019 1:45 pm

Error response mentioned by you is not complete so hard to get error you are facing,

But it might be due to files permisions.

You can install this module using ftp by extracting the pacakage in root dir of opecart.

Call us at : (+91) -8765210318 , Skype: live:carlmorgan.cedcommerce , Email: support@cedcommerce.com
CedCommerece : Officail Opencart Partners
CedCommerce Official : www.cedcommerce.com
Opencart Services : www.cedcommerce/opencart-services.com
Sell On various Marketplace Integration : Opencart-Extensions
Magenative Mobile App/IOS Development : magenative.com
Webinar : Power up Your holiday season marketing with the Automation tool


User avatar
Active Member

Posts

Joined
Wed Aug 09, 2017 9:02 pm

Post by siteadvice » Wed May 15, 2019 5:35 pm

I am having the same issue with the Facebook plugin. I'm using Opencart 2.0.2.0. I have tried it on both my development server and production server with the same result. Permissions seem to be set up correctly. I've tried using both the regular System > Store > FTP settings and also the iSenseLabs "Quickfix"modification to install the extension. Again, same result: JSON.parse: unexpected character at line 1 column 1 of the JSON data.

Crucially, there's nothing after that - no mention of any permissions error or any sort of diagnostics.

Is this something specific to the Facebook extension or a more general Opencart issue that might be caused by an error in the existing code?

I've contacted Facebook via the Opencart website but I don't know whether I can expect a swift response.

I did try extracting the files in the ZIP, renaming the install.xml file to install.ocmod.xml and installing that, but all that achieved was to completely block access to the Extensions > Modules page, so there was no way to install it (and obviously I then had to delete all the files manually). Also, doing it this way does not create the necessary database table(s).

Anyone got any ideas? Is there a way to get this to work?

inframes.com Website Design with Opencart, Wordpress, Lucee and bespoke application design and development


User avatar
New member

Posts

Joined
Mon Oct 24, 2011 8:12 pm

Post by OSWorX » Wed May 15, 2019 9:12 pm

Basically, when we speak here of a 'facebook ads extension', which one is that exactly (ther are several on the marketplace).
A link would be very helpfully .. ???

Second, simply check your server log - there you will find the error, not in the OpenCart logfile.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by siteadvice » Thu May 16, 2019 12:32 am

Thanks for your reply.

I am referring to the official Facebook extension - there is only one:

https://www.opencart.com/index.php?rout ... n_id=32336

Nothing shows up in the PHP error log, or in /system/logs/error.log or thge root error_log file. That's why I am stumped!

Any ideas?

inframes.com Website Design with Opencart, Wordpress, Lucee and bespoke application design and development


User avatar
New member

Posts

Joined
Mon Oct 24, 2011 8:12 pm

Post by OSWorX » Thu May 16, 2019 2:15 am

Okay, wanted just to be sure that we talk about the same extension (there are more 'official' fb extension doing quite the same).

Funny, because yesterday I have installed this extension for a client.
Never used it before.
But, I did not use the 'offical' package, I picked it up from their Github page: https://github.com/facebookincubator/Fa ... r-OpenCart
And after that, I reworked a bit, because the original is not that what I would say 'user friendly'
E.g. has many 'hard coded' language strings, means is not fully translateable.

After that, I created a new installer package - and the installation and the process afterwards (establishing the connection, synchronizing the products) was just a matter of 2 minutes.

The extension runs now as I expect it.

If you want, you can contact me and I send you this package.

p.s.: at their Github page, you can also submit a issue/bug report. Maybe the dev there (response normally within 1 day) is able to help you further.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by siteadvice » Fri May 17, 2019 5:09 pm

Thanks for the offer. Yes, please send me your installer package. That could be very helpful. It's worth a try, anyway!

Not sure how to contact people directly through this message board, but if you can't send me a private message, let me know and we'll figure something out!

Thank you again.

inframes.com Website Design with Opencart, Wordpress, Lucee and bespoke application design and development


User avatar
New member

Posts

Joined
Mon Oct 24, 2011 8:12 pm
Who is online

Users browsing this forum: No registered users and 27 guests