boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

just getting started
Goto page 1, 2  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Installation issues
View previous topic :: View next topic  
Author Message
mondo



Joined: 26 Oct 2004
Posts: 17

PostPosted: Wed Oct 27, 2004 1:31 am    Post subject: just getting started Reply with quote

and i effd up my index.php template.

in attempting to change the page title, I goofed up the template.

snip-

<title> <?php bloginfo(MondoSwank) ?><?php single_post_title(' :: ') ?><?php single_cat_title(' :: ') ?><?php single_month_title(' :: ') ?> Mondo Swank</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="reply-to" content="<?php bloginfo('admin_email'); ?>" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="TRUE" name="MSSmartTagsPreventParsing" />

<style type="text/css" media="screen">
@import url( ../layout2b.css );
</style>
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<link rel="alternate" type="text/xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php comments_popup_script() ?>

</head>
<body>
<div id="header"><a href="MondoSwank" title="Mondo Swank"><?php bloginfo(MondoSwank); ?></a></div>

if anyone can help fix thiose link references, I'd be in your debt.

Also, when i finally found the right place to change the name, i did, and suddenly my blog died and I get this error when I try to access the page:

snip-


Parse error: parse error in /home/meyerima/.panel/web/b2/b2config.php on line 151

Warning: main(/home/meyerima/.panel/web/b2//b2template.functions.php): failed to open stream: No such file or directory in /home/meyerima/.panel/web/b2/blog.header.php on line 14

Fatal error: main(): Failed opening required '/home/meyerima/.panel/web/b2//b2template.functions.php' (include_path='.:/usr/local/lib/php') in /home/meyerima/.panel/web/b2/blog.header.php on line 14

Thanks in advance for any assistance!
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 365

PostPosted: Wed Oct 27, 2004 1:50 pm    Post subject: Re: just getting started Reply with quote

mondo wrote:
Parse error: parse error in /home/meyerima/.panel/web/b2/b2config.php on line 151

What have you got on line 151 (and maybe 1 or 2 lines before) of b2config.php?

mondo wrote:
Warning: main(/home/meyerima/.panel/web/b2//b2template.functions.php): failed to open stream: No such file or directory in /home/meyerima/.panel/web/b2/blog.header.php on line 14

Fatal error: main(): Failed opening required '/home/meyerima/.panel/web/b2//b2template.functions.php' (include_path='.:/usr/local/lib/php') in /home/meyerima/.panel/web/b2/blog.header.php on line 14

It looks as if it can't find b2-include because $b2-inc isn't defined. This may be because of the previous error which caused PHP to stop reading b2config.php, so try to sort that out first.

Check that you have in b2config.php (way after line 151) the lines
Code:
# $b2inc is where the included b2 files are: that's generally the directory b2-include,
#  so you shouldn't have to change that setting
$b2inc = './b2-include';
Back to top
View user's profile Send private message
mondo



Joined: 26 Oct 2004
Posts: 17

PostPosted: Wed Oct 27, 2004 5:31 pm    Post subject: b2config Reply with quote

Below are lines 147 through 151, with 151 being the <BLOCKQUOTE>

# the language of your blog ( see this: http://backend.userland.com/stories/storyReader$16 )
$rss_language = 'en';

# for b2rss.php: allow encoded HTML in <description>tag? 1=yes, 0=no $rss_encoded_html = 1; # length (in words) of excerpts in the RSS feed? 0=unlimited # note: in b2rss.php, this will be set to 0 if you use encoded HTML $rss_excerpt_length = 50; // ** Weblogs.com ping ** # set this to 1 if you want your site to be listed on http://weblogs.com when you add a new post $use_weblogsping = 0; // ** Blo.gs ping ** # set this to 1 if you want your site to be listed on http://blo.gs when you add a new post $use_blodotgsping = 0; # if you ping blo.gs, this is the URL that will be sent to it (enter your blog's URL): $blodotgsping_url = 'http://%domaingoeshere/v-web/b2%'; // ** Trackback / PingBack ** # set this to 0 or 1, whether you want to allow your posts to be trackback'able or not # note: setting it to zero would also disable sending trackbacks $use_trackback = 0; # set this to 0 or 1, whether you want to allow your posts to be pingback'able or not # note: setting it to zero would also disable sending pingbacks $use_pingback = 0; // ** Comments options ** # set this to 1 to require e-mail and name, or 0 to allow comments without e-mail/name $require_name_email = 1; # here is a list of the tags that are allowed in the comments. # you can add tags to the list, just add them in the string, # add only the opening tag: for example, only '<A>' instead of '<A href=""></A>' $comment_allowed_tags = '<B><I><U><STRONG><EM><CODE>
<BLOCKQUOTE>
Back to top
View user's profile Send private message
mondo



Joined: 26 Oct 2004
Posts: 17

PostPosted: Wed Oct 27, 2004 5:35 pm    Post subject: $b2inc Reply with quote

Oh, and I do that have that b2 include line
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 365

PostPosted: Wed Oct 27, 2004 5:48 pm    Post subject: Reply with quote

It's a bit hard to see the problem as the pasting into the forum has merged the lines together.

You should have a line that says:
Code:
$comment_allowed_tags = '<b><i><u><strong><em><code><blockquote><p><br><strike><a>';
Is this what you have? Is the final '; there?
Back to top
View user's profile Send private message
mondo



Joined: 26 Oct 2004
Posts: 17

PostPosted: Wed Oct 27, 2004 5:51 pm    Post subject: yes Reply with quote

on line 152:

<P><BR><STRIKE><A>';

followed by a comment line...
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 365

PostPosted: Wed Oct 27, 2004 5:57 pm    Post subject: Reply with quote

What happens if you put them all one line so you have
Code:
$comment_allowed_tags = '<b><i><u><strong><em><code><blockquote><p><br><strike><a>';
It may be that the new line you have inside the variable $comment_allowed_tags is confusing PHP
Back to top
View user's profile Send private message
mondo



Joined: 26 Oct 2004
Posts: 17

PostPosted: Wed Oct 27, 2004 6:05 pm    Post subject: Reply with quote

Ok, that got rid of the line 151 error, but I still get the following error:

Warning: main(/home/meyerima/.panel/web/b2//b2template.functions.php): failed to open stream: No such file or directory in /home/meyerima/.panel/web/b2/blog.header.php on line 14

Fatal error: main(): Failed opening required '/home/meyerima/.panel/web/b2//b2template.functions.php' (include_path='.:/usr/local/lib/php') in /home/meyerima/.panel/web/b2/blog.header.php on line 14
Back to top
View user's profile Send private message
mondo



Joined: 26 Oct 2004
Posts: 17

PostPosted: Wed Oct 27, 2004 6:08 pm    Post subject: Reply with quote

and line 14 is

Code:
require_once ($b2blah.$b2inc.'/b2template.functions.php');
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 365

PostPosted: Wed Oct 27, 2004 6:13 pm    Post subject: Reply with quote

It's not seeing the $b2inc variable which is why it says there's a problem with ...web/b2//b2template.functions.php.

Near the beginning of blog.header.php, does it say
Code:
require_once (dirname(__FILE__).'/b2config.php');
Back to top
View user's profile Send private message
mondo



Joined: 26 Oct 2004
Posts: 17

PostPosted: Wed Oct 27, 2004 6:20 pm    Post subject: Reply with quote

yes, line 9

Code:
require_once (dirname(__FILE__).'/b2config.php');
[/quote]
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 365

PostPosted: Wed Oct 27, 2004 6:30 pm    Post subject: Reply with quote

As a temporary measure, in blog.header.php add the line
Code:
$b2inc = './b2-include';
just after
Code:
require_once (dirname(__FILE__).'/b2config.php');

Does it work now? If so, we'll have to work out why it's not picking up the value of $b2inc from b2config.php.
Back to top
View user's profile Send private message
mondo



Joined: 26 Oct 2004
Posts: 17

PostPosted: Wed Oct 27, 2004 6:33 pm    Post subject: Reply with quote

no, now i get this error

Quote:
Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: NO) in /home/meyerima/.panel/web/b2/b2-include/b2functions.php on line 37
Can't connect to the database server. MySQL said:
Access denied for user: 'root@localhost' (Using password: NO)
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 365

PostPosted: Wed Oct 27, 2004 6:42 pm    Post subject: Reply with quote

That proves that the blog can't read b2config.php. It hasn't picked up the login and password from there, hence the error.

Can I check that b2config.php is in the root of the blog ie the same directory as the one containing blog.header.php? If you are using Linux what file permissions does b2config.php have?

In case b2config.php has become corrupted in some way, get the original (you'll find one at b2 Cafelog Resource Center if you don't have your own) and re-input your details into that and see if it works.
Back to top
View user's profile Send private message
mondo



Joined: 26 Oct 2004
Posts: 17

PostPosted: Wed Oct 27, 2004 6:47 pm    Post subject: Reply with quote

k, did that (got the latest version, hope thats the right one)

all i changed was the blog title and now I get this:

Quote:
Warning: mysql_connect(): Access denied for user: 'user@localhost' (Using password: YES) in /home/meyerima/.panel/web/b2/b2-include/b2functions.php on line 37
Can't connect to the database server. MySQL said:
Access denied for user: 'user@localhost' (Using password: YES)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Installation issues All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group