Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HistoryReader Error #18

Open
rabyunghwa opened this issue Sep 29, 2015 · 25 comments
Open

HistoryReader Error #18

rabyunghwa opened this issue Sep 29, 2015 · 25 comments

Comments

@rabyunghwa
Copy link

When I tried to load history_reader.php into cmd, it showed me some fatal errors (as shown in the screenshot). So what could possibly go wrong? Thanks in advance.
capture

@ben-xo
Copy link
Owner

ben-xo commented Sep 29, 2015

Hi there,

You need to cd to Users\ByubgHwa\Desktop first. The clue is right there on
the screen. :)

On Tue, 29 Sep 2015 at 09:31, ByungHwa Ra [email protected] wrote:

When I tried to load history_reader.php into cmd, it showed me some fatal
errors (as shown in the screenshot). So what could possibly go wrong?
Thanks in advance.
[image: capture]
https://cloud.githubusercontent.com/assets/7411385/10158921/8cb9e488-66c7-11e5-8677-b465f7a6d7e5.PNG


Reply to this email directly or view it on GitHub
#18.

@rabyunghwa
Copy link
Author

Hey dude, I did as you said. This time it didn't show any errors. But the php file just pops out. Nothing else really happens. Is this the expected behavior? And then I moved onto the next step, which is to start scrobbling by typing in the cmd "php historyreader.php -L lastfmusername", then the same errors show up again. Is there any more specific guides that I can follow? I'm quite a newbie and sometimes can feel really confused following the descriptions. Also I've found that this library hasn't been maintained for quite a long period. Is there any other solution already? Thanks in advance.
capture

@ben-xo
Copy link
Owner

ben-xo commented Oct 3, 2015

I'm afraid it might be time for to learn a bit more about the command
prompt - I'm not sure how to explain it better without actually showing you
what to do (rather than just describing it).

Running "historyreader" with no options doesn't do anything, you need to
add the options all in the same command

On Sat, 3 Oct 2015 at 06:56, ByungHwa Ra [email protected] wrote:

Hey dude, I did as you said. This time it didn't show any errors. The php
file just pops out. Is this the expected behavior? Then I moved onto the
next step, which is to start scrobbling by typing in the cmd "php
historyreader.php -L lastfmusername", then the same errors shows up again.
Is there any more specific guides that I can follow? I'm quite a newbie and
sometimes can feel really confused following the descriptions. Also I've
found that this library hasn't been maintained for quite a long period. Is
there any other solution already? Thanks in advance.
[image: capture]
https://cloud.githubusercontent.com/assets/7411385/10261681/4e3add5e-69d6-11e5-9a8f-5a519d42fe16.PNG


Reply to this email directly or view it on GitHub
#18 (comment).

@rabyunghwa
Copy link
Author

Hey dude. I think I made some progress on the use of cmd prompt. However, there seems to be some other problem going on. So please help me dude. FYI, my OS version is Win10.
capture

@rabyunghwa
Copy link
Author

Hey dude I've figured it out!
https://serato.com/scratchlive
Like what's said there, scratchlive has been updated to Serato so will this still work?
Thanks.

@ben-xo
Copy link
Owner

ben-xo commented Oct 12, 2015

Hi, the problem is that your PHP doesn't have the multibyte (mb) plugin
enabled.

On Mon, 12 Oct 2015 at 12:32, ByungHwa Ra [email protected] wrote:

Hey dude I've figured it out!
https://serato.com/scratchlive
Like what's said there, scratchlive has been updated to Serato so will
this still work?
Thanks.


Reply to this email directly or view it on GitHub
#18 (comment).

@rabyunghwa
Copy link
Author

Dude thank you very much. However, there's new problems arising. It says String could not be parsed as XML. So is there anything that I have not installed? I've done everything specified in your instructions. Also I could not tweet. Please help me with this. Thanks.
capture

@ben-xo
Copy link
Owner

ben-xo commented Oct 12, 2015

Hmm! That looks like it going be a genuine bug, or a problem with Last.fm…
Good job I work for Last.fm. I will look into that.

On Mon, 12 Oct 2015 at 16:18 ByungHwa Ra [email protected] wrote:

Dude thank you very much. However, there's new problems arising. It says
String could not be parsed as XML. So is there anything that I have not
installed? I've done everything specified in your instructions. Also I
could not tweet. Please help me with this. Thanks.
[image: capture]
https://cloud.githubusercontent.com/assets/7411385/10431415/7a3b713a-7137-11e5-8c1b-456dda949eb6.PNG


Reply to this email directly or view it on GitHub
#18 (comment).

@rabyunghwa
Copy link
Author

Dude I'm also having some problem inserting the playlist into MySQL database. More specifically, about the MySQL setup in the php.ini file. Can you elaborate more on this?

@ben-xo
Copy link
Owner

ben-xo commented Oct 16, 2015

The issue "XML: Extra content at the end of the document" is now resolved (it was a bug with Last.fm! Fix made at Last.fm end) which means you can now connect to Last.fm.

@ben-xo
Copy link
Owner

ben-xo commented Oct 16, 2015

Regarding MySQL setup: unless you have a specific need for this, don't bother. That was added for a specific user who asked for it in order to integrate with a radio station application. If you don't know how to set it up, you probably don't need it.

@rabyunghwa
Copy link
Author

Hey dude thank you very much for the fix! It's working now! This is great! Thanks again!
But dude I'm afraid I'll need your help with the MySQL setup. I'm currently working on an Android client app where the currently playing song's info like its name is displayed. What I have in mind is insert the song name into MySQL database when the underlying observer is triggered. And then push a message or a notification from the server to my Android client app. Do you think this is the right approach? Do you know if there is any RSS feed from Serato website that I can fetch from which I can get the now-playing song's info? It would be much easier if there were any external API that I can use to get it. Thank you very much.

@rabyunghwa
Copy link
Author

Dude I tried the MySQL implementation but to no avail. Could you please help me with it? Can't seem to get the configuration right. Thank you very much.
capture

@ben-xo
Copy link
Owner

ben-xo commented Oct 18, 2015

You need to enable the MySQL module for PHP in the .ini file the same way
you enabled mb multibyte module.

On Sun, 18 Oct 2015 at 04:56, ByungHwa Ra [email protected] wrote:

Dude I tried the MySQL implementation but to no avail. Could you please
help me with it? Can't seem to get the configuration right. Thank you very
much.
[image: capture]
https://cloud.githubusercontent.com/assets/7411385/10562447/2181f8e6-758f-11e5-945e-15d4100290ad.PNG


Reply to this email directly or view it on GitHub
#18 (comment).

@rabyunghwa
Copy link
Author

Yes dude I did enable the module but not sure if it's correct. Where do I set the specific database and the table to insert the data into?
save1
save2

@ben-xo
Copy link
Owner

ben-xo commented Oct 18, 2015

The error your seeing there - I think you need the other MySQL driver.
There are two.

You set the details in the config.php - there is an example commented out
in there, I think! If not I'll give you an example later.
On Sun, 18 Oct 2015 at 05:09, ByungHwa Ra [email protected] wrote:

Yes dude I did enable the module but not sure if it's correct. Where do I
set the specific database and the table to insert the data into?
[image: save1]
https://cloud.githubusercontent.com/assets/7411385/10562483/053c4018-7591-11e5-8fea-a7d0a3bd1255.PNG
[image: save2]
https://cloud.githubusercontent.com/assets/7411385/10562486/09b78166-7591-11e5-84d8-6c256c767a09.PNG
[image: save3]
https://cloud.githubusercontent.com/assets/7411385/10562488/0dbf816e-7591-11e5-9d3e-496f967f5d47.PNG


Reply to this email directly or view it on GitHub
#18 (comment).

@rabyunghwa
Copy link
Author

Hey dude please give me an example. I changed the file's name from "config.php-default" to "config.php" and then modified it. But still it's not working.
capture
capture2

@rabyunghwa
Copy link
Author

Dude, sorry that I have so many questions to ask. It's just that I'm quite new to PHP and stuff. Really appreciate your help and patience

@ben-xo
Copy link
Owner

ben-xo commented Oct 18, 2015

Hey there,

The fact that it says "db plugin could not find driver" I think means you
still need to uncomment the correct MySQL plugin for php. You still need to
solve that problem.

However you also still have the default database name "hello" in your
config...

On Sun, 18 Oct 2015 at 10:47, ByungHwa Ra [email protected] wrote:

Hey dude please give me an example. I changed the file's name from
"config.php-default" to "config.php" and then modified it. But still it's
not working.
[image: capture]
https://cloud.githubusercontent.com/assets/7411385/10563530/434c6e80-75c0-11e5-86c4-e2b79e93e8c2.PNG
[image: capture2]
https://cloud.githubusercontent.com/assets/7411385/10563531/4d6f3e10-75c0-11e5-8778-3bb68d00eb05.PNG


Reply to this email directly or view it on GitHub
#18 (comment).

@rabyunghwa
Copy link
Author

Okay dude thank you very much! I think I'm getting closer and closer to what I want to achieve! However, nothing is inserted into my database despite the fact that this time no error is shown. Also I'm a little confused about what the 'user' and 'key' refer to in the statement '...WHERE user=:key'. Could you please just give me a working example? I'd really appreciate your help.
capture

@rabyunghwa
Copy link
Author

Also dude I just found out that Scratch Live had been replaced by SeratoDJ. And I tried it but it seemed that sslscrobbler would not work with SeratoDJ. Does it have to do with the folder where sslscrobbler finds the history session file being different? If this is the problem, then will you bring any update in the future to support SeratoDJ? Thanks.

@ben-xo
Copy link
Owner

ben-xo commented Oct 18, 2015

Hi there, as far as I was aware it works just fine with seratodj.

I'm sorry I don't think I can offer you more help with the MySQL plugin.
When I said it was only for those who know what they need, I think you
should probably refer this o your database administrator or someone else
who knows SQL.

On Sun, 18 Oct 2015 at 17:00, ByungHwa Ra [email protected] wrote:

Also dude I just found out that Scratch Live had been replaced by
SeratoDJ. And I tried it but it seemed that sslscrobbler would not work
with SeratoDJ. Does it have to do with the folder where sslscrobbler finds
the history session file being different? If this is the problem, then will
you bring any update in the future to support SeratoDJ? Thanks.


Reply to this email directly or view it on GitHub
#18 (comment).

@dfraser
Copy link

dfraser commented Oct 18, 2015

It does. I use it weekly!

Dan Fraser

On Oct 18, 2015, at 12:36, Ben XO [email protected] wrote:

Hi there, as far as I was aware it works just fine with seratodj.

@rabyunghwa
Copy link
Author

Hey dude okay. Thank you so much for your generous help so far. And Dan, if you could help me with it, I would really appreciate it!

@rabyunghwa
Copy link
Author

Hey dudes! It works with SeratoDJ!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants