binfalse / YOURLS-FirefoxExtension

Extension for Firefox to shorten URLS using YOURLS
https://binfalse.de/software/browser-extensions/yourls-firefox-extension/
GNU General Public License v3.0
13 stars 3 forks source link

Communication error within the extension #13

Open kinggrowler opened 6 years ago

kinggrowler commented 6 years ago

Hi, I am unable to use your extension. I receive the following message every time:

"Communication error within the extension! This seems like a serious bug!?"

This happens immediately when i try to "Test and Save" my settings. I am unable to ever test and save.

I am using YOURLS Web Extension 2.4.6 On Firefox 63.0 for Android On an unrooted Sony G8441 (Xperia XZ1 Compact) running Android 8.0.0.

I have tested that my YOURLS installation works, I can access it over the internet from multiple locations and browsers, and I have integrated it with other apps via API (e.g. PrivateBin). I know that my URL and API token works.

The extension never even hits my webserver, so I do not have any server logs. Also, my phone is not rooted, so I'm not sure what logs I can provide from my phone either. Let me know if there is anything else I can do it troubleshoot this.

My yourls instance is served via a subfolder of a domain, i.e. https://example.com/yourls . I'm using an SSL certificate from letsencrypt.

binfalse commented 6 years ago

Hi @kinggrowler, is the extension working on a non-phone? I never tested it on Android and maybe Firefox on Android handles things a bit differently? Or comes with other restrictions...? Can you test the same parameters in a browser on a laptop or a PC?

kinggrowler commented 5 years ago

@binfalse, the extension does work in FF 60+ on Xenial. It was specifically the Android FF version I was inquiring about. Sounds like it is best used in a PC. Thanks!

thetechnodino commented 5 years ago

I have the exact same problem. Something has changed because this app worked flawlessly. I cannot provide any logs either.

thetechnodino commented 5 years ago

I have the exact same problem. Something has changed because this app worked flawlessly. I cannot provide any logs either.

binfalse commented 5 years ago

@thetechnodino so for you it's not working on android? can you say if the plugin is working fine with the same parameters on a laptop or pc?

thetechnodino commented 5 years ago

Correct. Not working on Android. Works on my PC>

On 2019/03/14 John Payne at github@jcpenterprises.biz replied:

Thanks, Martin for your response.

-- John 630-815-2989|www.pde-usa.net

On Thu, 14 Mar 2019 03:25:20 -0700 Martin Scharm notifications@github.com wrote:

@thetechnodino so for you it's not working on android? can you say if the plugin is working fine with the same parameters on a laptop or pc?

-- John 630-815-2989|www.pde-usa.net

WerewolfLord commented 3 years ago

I am having the problem as well. Fresh installation of Firefox 93.0 (64-bit) running on Ubuntu 20.04.3 (kernel 5.11.0-38)

(I can't even find the extension at all on the Firefox add-ons for Android site.)

Communication error within the extension! Could you please file a bug report at..... This message flashes briefly for about 1 second before reverting to: Error: Server returned status 500 (internal server error)

I am entering the parameters as (for example): Server URL: https://yyy.zz* (*-obv. not the real ones) Signature: 123456abcd* Signature is from the admin/tools.php page on the line: Your secret signature token: 123456abcd* (It's a secret. Keep it secret)

However, when I enter the Server URL as http (not https), the Communication error appears again for about a second, but this time: Error: Server returned status 403 (Forbidden). Seems like you are not allowed to access the API... (I hope this is just because the server is requiring that the extension use https.)

Is there something on the server that needs to be configured? The server is running YOURLS 1.8.2 on Apache 2.4.48 / PHP 7.4.21 on Debian 11.0.0.

With the https, I get the following error in /var/log/apache2/error.log on the server:

[Fri Oct 22 20:41:46.738787 2021] [php7:notice] [pid 416913] [client aa.bb.cc.dd:pppp] PHP Notice:  Constant YOURLS_DEBUG already defined in /var/www/user/config.php on line 80
[Fri Oct 22 20:41:46.746101 2021] [php7:error] [pid 416913] [client aa.bb.cc.dd:pppp] PHP Fatal error:  Uncaught Error: Class 'DOMDocument' not found in /var/www/includes/vendor/spatie/array-to-xml/src/ArrayToXml.php:29\nStack trace:\n#0 /var/www/includes/vendor/spatie/array-to-xml/src/ArrayToXml.php(67): Spatie\\ArrayToXml\\ArrayToXml->__construct()\n#1 /var/www/includes/functions.php(77): Spatie\\ArrayToXml\\ArrayToXml::convert()\n#2 /var/www/includes/functions-api.php(142): yourls_xml_encode()\n#3 /var/www/yourls-api.php(51): yourls_api_output()\n#4 {main}\n  thrown in /var/www/includes/vendor/spatie/array-to-xml/src/ArrayToXml.php on line 29

(I hope this is of help?)

Thank you!