Bug report: debug mode always on
-
Plugin version: 1.4.8
Hi, I just tested your plugin, and every time I saved a post, I got shown the long instagram JSON response, which forbid sending header redirect.
Turned out the way how debug mode is resolved has an issue – when you save the settings, the wp2instagram_debug key is either “Y” if debug turned on, or null if turned off.
This is then incorrectly resolved in wp2instagram.php on line #811 – sets $debug_mode to ”, which is then converted to ‘Y’ on line #815.
I fixed it by changing line #811 to $debug_mode = ‘N’;
Would be great to have this fix incorporated so we can just update and don’t have to have plugin locally modified. Otherwise your plugin works nicely, thanks for it.
-
Hello Jan Zikmund
Thanls for this correction, it will be included in the next version.
Regards
Hello Jan Zikmund
It is now included in version 1.4.9 of the plugin.
Regards
@dufour_l Hi, thanks for good news, I have just tried it but when I replace the locally fixed 1.4.8 with freshly downloaded 1.4.9 and publish a new post, I just got an error that something went wrong when logging to instagram. When I put my locally modified 1.4.8 back, it works so I am still keeping it. Any chance to research this? My client will unfortunately be hardly willing to pay for me spending any more time on it as long as our current local version works.
I have just tried a diff between wp2instagram.php in version 1.4.8 and 1.4.9, but the changes are too many, not sure if it is just the structure or some many additions were added.
-
This reply was modified 6 years ago by
Jan Zikmund.
Hello Jan Zikmund
To know why “something went wrong” when logging to Instagram, can you please activate the debug mode of the plugin to have the error from Instagram ?
So far I do not think it is related to the modification between 1.4.8 and 1.4.9
Regards
@dufour_l – Just tried again with debug but the response is pretty long to paste here, any chance I can send it to you by email or any other way? Also I don’t want to paste it here for privacy reasons..
Thanks, Jan
Hello Jan
Send only the part with the error message (At the bottom of the Instagram response). If you send by email, the other developpers wont be able to help
Regards
-
This reply was modified 6 years ago by
dufour_l.
@dufour_l I just wrote you through a contact form on your website. Please write me back and I will send the debug output. Thanks a lot
There is no error message, it is just several huge JSONs and at the bottom is:
REQUEST: direct_v2/inbox/?
RESPONSE:Something went wrong while logging to instagram:
—-
And that’s it, there is nothing after thatCan you please send the whole debug message (And remove what you think is too private ), it will help us to understand what is going on
This is what I got:
https://janzikmund.cz/files/instagram-response-debug.txt
Please let me know when you download it and I will delete it. I modified some of the hashes but otherwise this is the full response.
Hello Jan
I have downloaded the debug file so you can now remove it.
So now what can we see in the error that you have with Instagram here is it below
REQUEST: friendships/autocomplete_user_list/
RESPONSE: {“message”: “Please wait a few minutes before you try again.”, “status”: “fail”}Now how to resolve this I do not know, but you are not the only one on Internet to have this error check a few links below :
Error logging in: “please wait a few minutes before trying again”
byu/John_C60 inInstagramhttps://www.blackhatworld.com/seo/please-wait-a-few-minutes-before-you-try-again.1045837/
Regards
first, thank you many times over for taking the time to file a bug. For the report to be most effective, we’ve noticed the following characteristics help us get to a solution the fastest.
Note that bug Research reports should only be submitted for existing functionality that does not work as intended. If you came here to submit a feature request or discussion topic, head on to
TL;DR example issue
Title: Signal messages jiggle in the conversation list
I have searched open and closed issues for duplicates
I am submitting a bug report for existing functionality that does not work as intended
I have read https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
This isn’t a feature request or a discussion topic
Bug description
Every time there’s a food commercial my messages start jiggling.Steps to reproduce
Open Signal
Go to the main conversation list
A commercial about food comes on the television in the other room
Actual result: Signal messages start to jiggle in the conversation list for a couple seconds.Expected result: Nothing should happen. Messages should just stay as they are.
Screenshots
signal jiggleDevice info
Device: LG Nexus 4Android version: stock Android 5.1.1
Signal version: 3.15.0
App state
Signal messages and calls registered, SMS disabled, passphrase enabledLink to debug log
https://debuglogs.org/2488708be425d005221703ff268214942480a2b4a7b856f30a63326b803144d1Characteristics
Search, search, search
Before submitting a new issue please search if someone has already opened an issue about the same topic. Don’t forget to search for both open and closed issues as GitHub only searches for open issues by default. (You may also wish to check out GitHub’s help article about search to get more accurate results.)Come up with a concise and descriptive title
A good title summarizes the issue in a few words and makes it easily searchable. There’s no need to use tags such as “[Feature]” in the titles. Speaking of search: Did you try searching duplicate issues by using your title as search keywords?Try to reproduce the bug
The developers need to see the bug in order to fix it. Try to find the exact conditions and steps that trigger the bug and add them to your issue report. Ideally, the developers can follow your steps and recreate the bug on their own device.Capture a debug log
The debug log describes what Signal was doing while it was running. If you capture a debug log immediately after a bug occurs, the developers can use the log to see exactly what was going on in your installation of Signal. Even in the case where you know the exact steps that cause the bug on your device, that doesn’t guarantee that the same steps will cause the bug on the developer’s device. It is always helpful to add a debug log to your issue report.How to capture a debug log
Immediately after the bug has happened go to Signal Settings -> Advanced -> Submit debug log
Tap Submit to generate a URL link for the log
Copy the link and paste it in your issue report
Note: If you are using a passphrase and the bug appears before you can successfully unlock the app, you can capture a debug log directly via the menu in the passphrase screen. You can also capture debug logs with adb if you cannot access any of Signal’s debug log menus.Debug log privacy
Debug logs captured within Signal are stripped of personal information. However, please note that the last two digits of phone numbers may be visible in the logs (e.g. +1 555 867 5309 will show as +*********09). This is to help differentiate between contacts when analyzing a log.
Add a screenshot
Sometimes a picture is worth a thousand lines of debug logs, but this doesn’t mean that you shouldn’t add a debug log too :). If the problem is visual and difficult to describe, a screenshot can go a long way. Different Android vendors have different ways of taking screenshots. Please check how to do it on your specific device. Usually it’s a combination of pressing the volume buttons and power button at the same time.You may need to toggle the Screen security option in Signal’s Privacy settings before taking a screenshot.
Device and app information
What’s your device?
What Android version is it running?
What version of Signal do you have?
App state
What are the relevant preferences that you have set that may be related to the issue? Some examples:
Registration state for Signal messages and calls
MMS settings
Passphrase
Theme
Message trimming
If this is a bug involving a second party, what’s their device/app info and app state?
Finished!
Congratulations! You are done. You have achieved the badge: Creator of Glorious Bug Reports!:sparkles:Now you can submit your report. Thanks for your help!
Advanced capturing
Here are some advanced ways to get more information from your device.Debug logs with adb
adb logcat
Capturing raw log data with adb may expose private information like phone numbers. Please review your adb debug logs before submission.Screenshots with adb
adb shell /system/bin/screencap -p /sdcard/screencap.png && adb pull /sdcard/screencap.png
Video (only for Android 4.4 and up)
A small video or gif can be helpful if the problem is visual and difficult to describe.adb shell screenrecord /sdcard/screenrecord.mp4
Then pull it from the device.adb pull /sdcard/screenrecord.mp4
Animated gifs
If you have ffmpeg and imagemagick, you can quickly convert a video into an animated gif:ffmpeg -i screenrecord.mp4 -r 10 screenrecord%05d.png
convert screenrecord*.png screenrecord.gif
rm screenrecord*.png
Manually making an Animated gif
mkdir tmpScreens
cd tmpScreens
# perform as many screenshots as you need to string together the animated gif:
adb shell screencap -p | perl -pe “s/\x0D\x0A/\x0A/g” > adb-screenshot-date +%s
.png
convert -delay 70 -loop 0 adb-screenshot-*.png anim.gif
Source link:
https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
https://elm-lang.org/news/the-perfect-bug-report -
This reply was modified 6 years ago by
- The topic ‘Bug report: debug mode always on’ is closed to new replies.