Well this is frustrating. I'm working on trying to add the newest posts and summary to the front page of the site, and suddenly get a similar, if not same, problem. When I try to log into my N-13 admin page it says:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news/class/mysql.php on line 22
Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news/class/mysql.php on line 23
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news/class/mysql.php on line 23
Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news/class/mysql.php on line 94
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news/class/mysql.php on line 94
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news/class/mysql.php on line 105
Statement: SELECT * FROM news30_options WHERE 1
I had added a RSS widget which I'd been playing with for about an hour with no problems, and also some code I found you wrote on the forum, trying to see which would work best. I took it all out, but I still am getting the error message. Before it went away after a couple of minutes and I could log into the admin page, but so far that's not been the case and it's been about 15 minutes.
I'm not sure if this is because of what I'm trying to do, or if it's just something else whacky. The php.ini file is still where I put it last night. I can log into phpMyAdmin for whatever that's worth or browse any non-N-13 page. It's just the N-13 admin that's not available,and any page using code that references it.
Hope you can figure out why - I'm stumped as to what to do. Thank you.
I had been playing with this from FeedWind
<!-- start feedwind code -->
<div style="font-size:10px; text-align:right;">
<a href="http://feed.mikle.com/en/" target="_blank" style="color:#CCCCCC;">FeedWind</a>
<!--Please display the above link in your web page according to Terms of Service.-->
<!-- end feedwind code -->
When I took them all off the page displayed fine again, but I still can't get into my admin page. Also, I had been playing with the code (changing the size and color of options) for some time before this occurred. So it wasn't like as soon as I did it the problem happened.
I've filled in the fields and it's still giving me an error but I notice that it's saying it's using the pw YES which is not my pw. Unless it's just saying that Yes, it's using a pw? Obviously I don't want to post my login info here, but I don't mind pm'ing you my info if you think that would help.
Total Posts: 1395
Try this instead on your page where you want the news displayed, add the following code
<?php include 'news/index.php'; ?>
The page you add that code to, make sure it is a .php file and not a .html file. Once you've done that, to customize how your news gets displayed go to Options > Templates > Edit whichever template is selected > News.
There is some documentation describing how to integrate into your site properly here
Thanks. You're right, I am doing it a round about way. The simple include is fine except it links to the home page, not the news/index.php page. I know I read in the forum how to change that so I will look into that, as well as take a closer look at the documentation in the code.google.com location.
Always a learning curve with a new application, but it's nice because there are so many options and things you can do to customize N-13.