Support

Akeeba Backup for Joomla!

#38800 From watchful Error: invalid JSON data from Akeeba Backup. Result:

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
Joomla! 3.10.11
PHP version
8.0.23
Akeeba Backup version
8.22

Latest post by tampe125 on Tuesday, 18 April 2023 09:02 CDT

derekk

This was working on the 27th 
Returned this error in watchful
Error: invalid JSON data from Akeeba Backup. Result:

I know its third party but the errors are referring to Akeeba and I wanted to know if you had any nsights?

Thank you 

tampe125
Akeeba Staff

Hello,

I'd wish to connect to your site to run some tests.  I have made this ticket private so that only you and me can see the information posted here.

Please provide me with the following information:

  1. The URL to your site's administrator login page
  2. Super User username and password
  3. FTP connection information


Please allow up to one business day (GMT+2 timezone) for me to log in to your site and debug this issue. When I'm done I will post back. Once the issue is fixed, you can revoke my access e.g. by changing the Super Administrator and FTP passwords.

IMPORTANT INFORMATION
In order for me to help you fast and accurately, please provide the information by copying the form below, paste it into your reply and fill in the information:

----- Access Information Form -- START -----
Super Administrator access

  • URL to site's administrator page (e.g. http://www.example.com/administrator?foobar):
  • Super User username:
  • Super User password:


FTP connection information

  • FTP methods supported (e.g. FTP, FTPS, SFTP):
  • FTP Hostname:
  • FTP Username:
  • FTP Password:
  • FTP Port (if other than 21 for FTP and 22 for SFTP, ask your host):


----- Access Information Form -- END -----

Please make sure that you have tested the Super Administrator connection using a different browser or machine than the one you are using daily. Double check that logging in is possible and that the user has Super User privileges, i.e. it's not a regular Administrator. Make sure that your site does not block whole countries or IP ranges which would make it impossible for me to log in / connect by FTP. Finally, please do make sure that the FTP connection works and that logging in to it I have access to your site's files.

Kindly note that your site connection information and your site content is handled in strict confidence. Not only we are a reputable development company, we are also bound by law (EU GDPR) to do so. After you file your reply, the connection information to your site will be stored in an encrypted, hidden storage area on our site and will be automatically deleted when this ticket is closed. Finally keep in mind that the people providing support to you are the same developers who wrote the software you're using on your site.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Sorry it took a while

----- Access Information Form -- START -----
Super Administrator access

  • URL to site's administrator page (e.g. http://www.example.com/administrator?foobar):
    https://www.piperflyer.com/administrator
  • Super User username: akeebasupport
  • Super User password: (pipe2K23)


FTP connection information

  • FTP methods supported (e.g. FTP, FTPS, SFTP):
  • FTP Hostname:
  • FTP Username:
  • FTP Password:
  • FTP Port (if other than 21 for FTP and 22 for SFTP, ask your host):

    Hostname: ftp.piperflyer.com

    Username: [email protected]

    Password: (pipe2K23)

    Port: 21


----- Access Information Form -- END -----


Watchful authentication
https://watchful.net/
derekk
(watc2K23)

tampe125
Akeeba Staff

Thank you for access details. I tried to manually run the backup using wget a command line script.

After we execute the first step, instead of receiving a 302 HTTP code for a redirect, we receive a status of 200 and some output is produced. I can't include it since it's javascript and it would be blocked, but it's a tag to include jQuery 3.3.1.

I suspect there's another plugin that is outputting the extra code or maybe it's CloudFlare. First of all I'd suggest to update all the extensions, then try to disable CloudFlare and run a test. Do you get the same error or is it working?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Thank you Davide
I didnt think we were using Cloudflare 
"Do you get the same error or is it working?"
How do I replicate or try this to discover if I get the same error?

tampe125
Akeeba Staff

Regarding CloudFlare, it could be a false positive from the detector I'm using, wappalyzer.

I can do a quick test for you, can you please update all the extensions? Maybe it was a known bug and it has been already fixed. After you updated everything please page me and I'll try again from CLI. 

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

This site was recently changed from piperflyer.org to piperflyer.com
There is a permanent 301 redirect in place at the original server Inmotion from dotorg to dotcom
Dotorg is still using Cloudflare as far as I remember

Updating extensions is a time  intensive project and cant be done first until verified on a dev site this a live ecommerce website 

Thanks Davide

tampe125
Akeeba Staff

Running the following command:

wget --max-redirect=10000 "https://www.piperflyer.com/index.php?option=com_akeeba&view=Backup&key=60YGGGbVRcYAAAAAAAAAAZbXD4Hhi6eucKVlpy" -O -

Produces the output in the attachment. As you can see there's something that is injecting the "script" part. This isn't something coming from the core of Joomla and it's breaking the script.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

I understand you think its a third party  extension injecting the script part and not from the Joomla core
The script in the screencap refers to Jquery so it may be a jquery plugin or a extension using Jquery

Can you test this on our dev site  and that way i can disable or modify anything and a lot faster and not risk the affect on the live site?

tampe125
Akeeba Staff

Ok, that works for me. Can you please provide access to the test site?

Am I allowed to update all the extensions there?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Ok I will have to update them because some are paid extensions.
I will do that and reply after with the authentications for you to sign in Davide.
Do you need to have watchful working on dev site too in order to test this?

Thank you

tampe125
Akeeba Staff

No, there's no need to have Watchful working there. I'll use external tools so I can double check that everything is working fine on our end.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Is it plausible that Cloudflare is affecting this ?
In other words if the conflict happens before the redirect gets to dotcom then perhaps its cloudflare.
Maybe we have to enter in Cloudflares IP or info first when testing?
You detected cloudflare and since cloudflare is used on dotorg before the redirect to dotcom maybe it is the cause or were not entering in the cloudflare information in your wget test and I am not in watchful?

tampe125
Akeeba Staff

Can you please temporary disable it or it would cause too many issues?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

if you mean the 301 redirect its on Inmotion Cpanel not cloudflare
I dont know if I want to do that first Davide
If you mean Cloudflare itself that would be even more time consuming and difficult to return  back to original state for me at least 
However if hat ends up being the remaining plausible cause then we will try it then

tampe125
Akeeba Staff

Before going all the way down, I had an hunch. I downloaded your latest backup, extracted it and did a quick search for "3.3.1.min", just to double check if there's some plugin manually adding that string.

Turn out, there is one. It's inside plugins/system/settings. Even if it has the Joomla header, this is NOT part of Joomla core (you can double check with a brand new installation of Joomla 3). It appears it is trying to set a cookie and then inject the jQuery string.

That's the source of the error, causing all the troubles. You should double check why there's a plugin directly outputting instead of using Joomla best practices, I suspect this is something related to the template, since it's trying to upgrade the jQuery library only on frontend.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Thanks Davide
Is this a file  3.3.1.min how would I find it?
Do you mean  https://code.jquery.com/jquery-3.3.1.min.js  ?

I will ask the template developer rockettheme



Did you happen by any outside chance change the PHP version accidentally

I went in yesterday and it had changed from 8.0 to 7.4.

It usually states that the PHP version is out of date with a big warning when you go to the Akeeba component in Joomla and it is not showing any warning now.
I am wondering what version I am using now?

tampe125
Akeeba Staff

There isn't a file named 3.3.1.min. That's the string I used to search inside the code, that file is directly loaded from jQuery CDN. The file that is injecting the extra string and it's causing issues is the following:

plugins/system/settings/settings.php

Regarding the PHP version, I didn't touch anything, I simply took a backup and downloaded it

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Thanks for clarifying
"that file is directly loaded from jQuery CDN. The file that is injecting the extra string and it's causing issues is the following: plugins/system/settings/settings.php"  is that what i should state and ask the tempate developer ?

Yes I didnt expect that you had changed PHP, so if Akeeba doesnt show that 7.4 warning does that  Akeeba searched and detected I have PHP version above 7.4 installed?

tampe125
Akeeba Staff

I'm not sure if that's related to the template or not. What I can tell you is that such plugin is causing the issue. Since there's no signature in it, it's pretty hard to trace back to who developed it, I ca nonly speculate.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Ok i will turn off the  jquery for the template on the dev site and you could run your test again
I will post the sign in info on monday or tuesday

Thanks Davide

derekk

Hi Davide I turned off Jquery in the template can you run your test again?
Here is the login

https://livecopyjan25.piperflyer.com/administrator
derekk
ppipe2K21p

tampe125
Akeeba Staff

The issue is still there. As previously stated, the problem comes from the plugin Settings. This is not part of the Joomla core and there are no records, comments or anything explaining why it's there.

See attachment.

When I disabled it, the backup works fine.

You have to investigate if it's safe to keep it disabled on your site.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Ok Thank you
So you disabled a plugin called settings and the backup test you tried works, correct?
I could try running a remote from watchful and it should also work, correct?
If they work  then I can review this dev site and see if everything else is working .
If all is working try to discover how that plugin got installed because as you said it is not a core Joomla plugin


tampe125
Akeeba Staff

Yes I disabled it and then I enabled it again because I did not want to cause issues.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Ok you can do what you want now its a dev site I can always restore it with Akeeba
I will disable it and test the remote backup and get back to you

tampe125
Akeeba Staff

Ok let me know how it goes.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

To update you Davide.
The scheduled remote backup from watchful.net works on the dev site https://livecopyjan25.piperflyer.com/
I have the settings plugin disabled
I tested a few functions like signing in and  looked at  Kunena forum so far anything I have reviewed works not sure how far and what other functions I should check?
I will uninstall it 
Then I need to replicate all of these steps on the live site.

The remaining question now is, is this settings plugin a hack or was it just installed by some other component and I didn't notice?

I'm not sure if it is related however as I told you  I discovered on the live site that PHP version had been changed back to 7.4 from 8.0 its possible it was from the host Siteground PHP managed system. I am hoping it all works when I change it back to version 8 I am assuming it should since it works on this dev site and worked on the live site before. 
Is there any plausible relationship to the PHP version changing and this settings plugin or a hack?

tampe125
Akeeba Staff

The settings plugin feels kind of "hacky": it sets a cookie and injects the jQuery script. It feels like it has been deployed just to quick fix some kind of issues.

Regarding the switch of the version, I didn't touch anything, maybe your host reverted the change? Anyway, PHP 8.0 is way more restrictive than PHP 7.4, maybe someone else switched it back because there was some kind of error somewhere?

There is no relationship between the PHP version and the settings plugin.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!