Page 1 of 1

Error while installing facebook ads extension

Posted: Thu Apr 18, 2019 5:52 pm
by ediiqzx
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
<!DOCTYPE html>
<html dir="ltr" lang="en">
<meta charset="UTF-8" />
<title>Pagina nu a fost găsită!</title>
<base href="" />
<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>
<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=";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=";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=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW&amp;filter_order_status=5,3"><span class="label label-success pull-right">9</span>Finalizat</a></li>
        <li><a href=";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=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><span class="label label-success pull-right">7</span>Clienţi Online</a></li>
        <li><a href=";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=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW&amp;filter_quantity=0"><span class="label label-danger pull-right">0</span>Nu sunt în stoc</a></li>
        <li><a href=";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=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW&amp;filter_approved=1"><span class="label label-danger pull-right">0</span>În aşteptarea aprobării</a></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="" 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="" target="_blank">Pagina de start</a></li>
        <li><a href="" target="_blank">Documentație</a></li>
        <li><a href="" target="_blank">Forum OpenCart</a></li>
    <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><span class="hidden-xs hidden-sm hidden-md">Deconectare</span> <i class="fa fa-sign-out fa-lg"></i></a></li>
<nav id="column-left"><div id="profile">
        <i class="fa fa-opencart"></i>
    <h4>Johnad Doe</h4>
<ul id="menu">
  <li id="dashboard"><a href=";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>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Categorii</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Produse</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Abonamente</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Filtre</a></li>
      <li><a class="parent">Atribute</a>
          <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Atribute</a></li>
          <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Grupuri Atribute</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Opțiuni</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Producători</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Download-uri</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Opinii</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Pagini Informaţii</a></li>
  <li id="extension"><a class="parent"><i class="fa fa-puzzle-piece fa-fw"></i> <span>Extensii</span></a>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Instalează Extensie</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Modificări (OCMOD)</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Analizare Trafic</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Cod de verificare - Captcha</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Feed-uri</a></li>

      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><img style="vertical-align:top" src="view/seo_package/img/icon.png"/> Complete SEO</a></li>

			<li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW"><img style="vertical-align:top" src="view/pdf_invoice_pro/img/icon.png"/> PDF Invoice Pro</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Extensii Anti-Fraudă</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Module</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Metode de plată</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Metode de Livrare</a></li>
      <li><a href=";token=Z4vR9dzO2NfNEx8tmcOVvbeJq7V9ABQW">Totaluri comenzi</a></li>
  <li id="design"><a class="parent"><i class="fa fa-television fa-fw"></i> <span>Design</span></a>
      <li><a href="

Re: Error while installing facebook ads extension

Posted: Fri Apr 19, 2019 1:29 am
by webdesires
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.

Re: Error while installing facebook ads extension

Posted: Fri Apr 19, 2019 4:20 pm
by ediiqzx
The module is Facebook Ads Extension

Re: Error while installing facebook ads extension

Posted: Sat Apr 27, 2019 1:45 pm
by cedcommerceteam
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.

Re: Error while installing facebook ads extension

Posted: Wed May 15, 2019 5:35 pm
by siteadvice
I am having the same issue with the Facebook plugin. I'm using Opencart 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?

Re: Error while installing facebook ads extension

Posted: Wed May 15, 2019 9:12 pm
by OSWorX
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.

Re: Error while installing facebook ads extension

Posted: Thu May 16, 2019 12:32 am
by siteadvice
Thanks for your reply.

I am referring to the official Facebook extension - there is only one: ... 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?

Re: Error while installing facebook ads extension

Posted: Thu May 16, 2019 2:15 am
by OSWorX
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: ... 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.

Re: Error while installing facebook ads extension

Posted: Fri May 17, 2019 5:09 pm
by siteadvice
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.