Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-11-2012, 04:52 AM   PM User | #1
reaper0134
New Coder

 
Join Date: Jun 2012
Location: Pennsylvania
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
reaper0134 is an unknown quantity at this point
Question need review and help please

http://www.dryurears.com/ Please check out the syntax errors at bottom of page and please let me know of how to fix it ive been on this for to long now so i might just be over thinking it but please let me know im willing to port you to my server with teamviewer if you would like to show me.

Thank you
Tim S.
reaper0134 is offline   Reply With Quote
Old 11-11-2012, 08:58 AM   PM User | #2
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
Could you post line 23 in the file C:\wamp\www\wp-content\themes\twentyeleven\footer.php?
Custard7A is offline   Reply With Quote
Old 11-11-2012, 01:41 PM   PM User | #3
evo
waka Ionsurge


 
Join Date: Feb 2005
Location: United Kingdom
Posts: 882
Thanks: 5
Thanked 12 Times in 12 Posts
evo is an unknown quantity at this point
Moved to the PHP forums.
evo is offline   Reply With Quote
Old 11-11-2012, 02:27 PM   PM User | #4
reaper0134
New Coder

 
Join Date: Jun 2012
Location: Pennsylvania
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
reaper0134 is an unknown quantity at this point
Quote:
Originally Posted by Custard7A View Post
Could you post line 23 in the file C:\wamp\www\wp-content\themes\twentyeleven\footer.php?
here is the whole thing

<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the id=main div and all content after
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>

</div><!-- #main -->

<footer id="colophon" role="contentinfo">

<?php
/* A sidebar in the footer? Yep. You can can customize
* your footer with three columns of widgets.
*/
if ( ! is_404() )
get_sidebar( 'footeid="site-generator">
<?php do_action( 'twentyeleven_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ),r' );
?>

<div 'WordPress' ); ?></a>
</div>
</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>
reaper0134 is offline   Reply With Quote
Old 11-11-2012, 03:18 PM   PM User | #5
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
Gosh, okay. Here, look at line 23:

PHP Code:


get_sidebar( 'footeid="site-generator">
 <?php do_action'twentyeleven_credits' ); ?>
Php is being initialized, but it hasn't even been closed from last time. It should be this:

PHP Code:


get_sidebar
'footeid="site-generator"');
do_action'twentyeleven_credits' ); ?> 
I think that's valid with the quotes, how I put it. I would have thought along these lines myself:

PHP Code:


get_sidebar
"footeid=\"site-generator\"");
do_action'twentyeleven_credits' ); ?> 
I don't understand the difference between single and double quotes though.

Anyways, see how that works out. It might or might not be all that is causing errors. This code is a total mess if you ask me.
Custard7A is offline   Reply With Quote
Old 11-11-2012, 04:38 PM   PM User | #6
reaper0134
New Coder

 
Join Date: Jun 2012
Location: Pennsylvania
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
reaper0134 is an unknown quantity at this point
Quote:
Originally Posted by Custard7A View Post
Anyways, see how that works out. It might or might not be all that is causing errors. This code is a total mess if you ask me.
thats wordpress for you. But i will give it a try ill let you know
reaper0134 is offline   Reply With Quote
Old 11-11-2012, 05:08 PM   PM User | #7
reaper0134
New Coder

 
Join Date: Jun 2012
Location: Pennsylvania
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
reaper0134 is an unknown quantity at this point
great had to fix line 22 also but check it out i dont see problems on my end
PHP Code:
if ( ! is_404() )
        get_sidebar( 'footer' );?>
<div id="site-generator">
                <?php do_action'twentyeleven_credits' ); ?>
had to redo actions ty for the help

Last edited by reaper0134; 11-11-2012 at 05:14 PM..
reaper0134 is offline   Reply With Quote
Old 11-11-2012, 05:23 PM   PM User | #8
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
Now it says "Proudly powered by Wordpress" in place of the errors. ;P
Custard7A is offline   Reply With Quote
Old 11-11-2012, 06:10 PM   PM User | #9
reaper0134
New Coder

 
Join Date: Jun 2012
Location: Pennsylvania
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
reaper0134 is an unknown quantity at this point
Quote:
Originally Posted by Custard7A View Post
Now it says "Proudly powered by Wordpress" in place of the errors. ;P
lol going to change that
reaper0134 is offline   Reply With Quote
Old 11-11-2012, 06:25 PM   PM User | #10
reaper0134
New Coder

 
Join Date: Jun 2012
Location: Pennsylvania
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
reaper0134 is an unknown quantity at this point
and now its changed lol
reaper0134 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:06 PM.


Advertisement
Log in to turn off these ads.