Ramadamadam
Forum Replies Created
-
Forum: Plugins
In reply to: [Cresta Social Share Counter] Total share@crestaproject… great, thanks for letting us know ??
Forum: Plugins
In reply to: [Cresta Social Share Counter] Total share@crestaproject… how come removing the “s” from https has worked for me?
Forum: Plugins
In reply to: [Cresta Social Share Counter] Total shareI had the same issue and looking into the issue found the following which has fixed the count issue.
On the “https://newsharecounts.com” website page “How To Use NewShareCounts? Congratulations” after signing up for their Twitter code, it says:
Find this old url (now disabled by Twitter) in your code:
https://cdn.api.twitter.com/1/urls/count.json?url=
And replace it with our url:
https://public.newsharecounts.com/count.json?url=
But… on line 102 of “jquery.cresta-social-share-counter.js” file in the “js” folder in the “Cresta Plugin” there is an “s” in
https
which should just behttp
. After removing this “s” the count now works!I don’t know if this is a temporary fix or not, but it is working for me at the moment on multiple sites I have tested.
I hope this works for you too?
If I am correct, then we need the plugin developers to make this change and release an update.
Forum: Plugins
In reply to: [WordHue] WordHue Timeout ErrorHi @visser, the site in question is hosted with 1and1.co.uk (standard hosting provider). I am in conversation with them to see if the issue at my end, as it might not be your code at all! I don’t want to stress you looking for an issue that isn’t there. I will let you know what I find as soon as possible.
When I copy & paste the “$url” (that “wp_remote_get()” uses in your code) directly into the address bar it is getting the data back from my bridge just fine. Does that mean I do or do not still need to “configure my home network router to forward the traffic”?
If I do still need to configure it, what exactly does that mean and how would I go about doing it?
Thanks again.
Forum: Plugins
In reply to: [WordHue] WordHue Timeout ErrorThanks again @visser for looking in to this and updating your code again. Your update has removed the frontend error message, but using your debug suggestion (see results below) and adding:
echo '<pre>'; print_r( $response ); echo '</pre>'; error_log( '[wordhue] url: ' . $url );
on lines 18 and 19 I can now see the following:
WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 28: Connection timed out after 5000 milliseconds ) ) [error_data] => Array ( ) )
The URL you asked me to check correct displays my bridge data if I put it in the address bar manually.
This is what the debug.log is getting now:
[31-Mar-2017 10:08:41 UTC] [wordhue] sensors_job (error): wp_remote_get() returned false for the URL: https://IP/api/USERNAME/sensors [31-Mar-2017 10:08:46 UTC] [wordhue] url: https://IP/api/USERNAME/lights [31-Mar-2017 10:08:46 UTC] [wordhue] lights_job (error): wp_remote_get() returned false for the URL: https://IP/api/USERNAME/lights [31-Mar-2017 10:08:51 UTC] [wordhue] sensors_job (error): wp_remote_get() returned false for the URL: https://IP/api/USERNAME/sensors [31-Mar-2017 10:08:51 UTC] [wordhue] sensors_job (error): wp_remote_get() returned false for the URL: https://IP/api/USERNAME/sensors
I have tested wp_remote_get() and it works using a normal URL, just not with the URL to connect to my bridge.
Doing a bit of googling I have found that someone else had an issue with their server not supporting cURL correctly (I don’t understand it). So I have contact my server to see if the issue is at their end. I will let you know what happens once they’ve look into it.
I hope I can get this sorted as I would love to use your plugin and maybe help develop it further if you were interested? I was looking for something that I could expand on so I could customise my lights myself rather than being stuck to 3rd party apps etc.
Thanks again for your help.
Forum: Plugins
In reply to: [WordHue] WordHue Timeout ErrorHi @visser, thanks for your update, but I am still having the following issue when loading the page that has your short code on it:
What do you think is going wrong on line 15?
Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /**/**/**/**/www.mysite.co.uk/wp-content/plugins/wordhue/includes/lighting-sensors.php:15 Stack trace: #0 /**/**/**/**/www.mysite.co.uk/wp-content/plugins/wordhue/includes/page.php(15): codex_nas_lighting_sensors_job() #1 /**/**/**/**/www.mysite.co.uk/wp-includes/shortcodes.php(345): codex_nas_lighting_shortcode('', '', 'philips_hue_lig...') #2 [internal function]: do_shortcode_tag(Array) #3 /**/**/**/**/www.mysite.co.uk/wp-includes/shortcodes.php(223): preg_replace_callback('/\\[(\\[?)(philip...', 'do_shortcode_ta...', '[philips_hue_li...') #4 /**/**/**/**/www.mysite.co.uk/wp-includes/class-wp-hook.php(298): do_shortcode('[philips_hue_li...') #5 /**/**/**/**/www.mysite.co.uk/wp-includes/plugin.php(203): WP_Hook->apply_filters('[philips_hue_li...', Array) #6 /**/**/**/**/www.mysite.co.uk/wp-includes/post-template.php(240): apply_f in /**/**/**/**/www.mysite.co.uk/wp-content/plugins/wordhue/includes/lighting-sensors.php on line 15
What theme are you getting it to work on? I have tested it with my themes as well as Twenty Seventeen and it still has the same error.
Could it be a PHP version error? What version are you running?
UPDATE:
I was using PHP version 7.0 so I have just tested with PHP version 5.6 but I get this error message:Fatal error: Cannot use object of type WP_Error as array in /**/**/**/**/www.mysite.co.uk/wp-content/plugins/wordhue/includes/lighting-sensors.php on line 15
- This reply was modified 7 years, 11 months ago by Ramadamadam. Reason: PHP Testing