Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Server error_log flooded with PHP Parse Error (http://forum.bytesforall.com/showthread.php?t=10960)

Garwen Nov 4, 2010 03:57 AM

[SOLVED] Server error_log flooded with PHP Parse Error
 
Hello

Just noticed that the error_log of my webserver is flooded with the following error message:
Code:

[Thu Nov 04 10:19:18 2010] [error] [client x.x.x.x] PHP Parse error:  syntax error, unexpected '<' in [www-root]/wp-content/themes/atahualpa353/functions.php(532) : eval()'d code on line 7, referer: http://somepage.com
Everytime anyone access the page, a line per page is added to the error log.

Anyone an idea where this could come from ?

Thanks

juggledad Nov 4, 2010 04:23 AM

did you add anything to ato->Style & edit CENTER COLUMN->The LOOP?

have you added any New Widget areas?

Garwen Nov 4, 2010 04:48 AM

Didn't change anything on the loop. At least, not that i can remember. It looks like this:
Code:

<?php /* For SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_post_links('Top'); ?>

<?php /* Post Container starts here */
if ( function_exists('post_class') ) { ?>
<div <?php if ( is_page() ) { post_class('post'); } else { post_class("$odd_or_even"); } ?> id="post-<?php the_ID(); ?>">
<?php } else { ?>
<div class="<?php echo ( is_page() ? 'page ' : '' ) . $odd_or_even . ' post" id="post-'; the_ID(); ?>">
<?php } ?>

<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>

<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>

<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>

<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>

</div><!-- / Post -->

Didn't add any widget area. I use only the default "Right Sidebar"

But I removed some code from the footer.php, because it's a company internal server.
Code:

<!-- Footer -->
<td id="footer" colspan="<?php echo $cols; ?>">

    <p>
{removed some code here}
    <?php wp_footer(); ?>

</td>
<!-- / Footer -->

</tr>
</table><!-- / layout -->
</div><!-- / container -->
</div><!-- / wrapper -->
<?php bfa_html_inserts($bfa_ata['html_inserts_body_bottom']); ?>
</body>
</html>

Might this cause the problem ?

juggledad Nov 4, 2010 05:36 AM

I suspect that what ever you removed, you did it incorrectly and now have an extra < in the code that is confusing the php processor

Garwen Nov 4, 2010 05:41 AM

Easy to find out. Gonna replace the file with the original one.

Garwen Nov 4, 2010 05:49 AM

No, this was not it.
Also replaced "The Loop" with the default, but didn't change anything.

juggledad Nov 4, 2010 05:56 AM

disable all your plugins to see if one of them is causing it and remove all widgets

Garwen Nov 4, 2010 06:18 AM

Deactivated all Plugins and removed all Widgets.
Still getting that message in the error_log.

juggledad Nov 4, 2010 06:22 AM

do an export of the settings and attach it to a reply
What version are you using?

Garwen Nov 4, 2010 06:32 AM

Thanks a lot for your effort and time, juggledad.

Im Using Atahualpa 3.5.3 with Wordpress 3.0.1

Installed Plugins: (all latest versions)
Active Directory Integration
Admin Language
Akismet
Anouncement and vertical scroll news
Auto Delete Posts
Collapsing Categories
Current Date & Time Widget
FeedWordPress
FeedWordPress Duplicate Post Filter (deactivated)
Iframe Embedder
KB Countdown Widget
Simple LDAP Login (deactivated)
VSF Simple Stats

juggledad Nov 4, 2010 06:53 AM

you made an editing error at ato->Style & edit CENTER COLUMN->Content BELOW the LOOP

It looks like you wanted to remove the comments, so you changed
HTML Code:

<?php /* Load Comments template (on single post pages, and static pages, if set on options page): */
bfa_get_comments(); ?>

to this
HTML Code:

<?php /* Load Comments template (on single post pages, and static pages, if set on options page):
bfa_get_comments(); ?>
*/

by doing that you commented out the closing '?>' so the code is still in php mode. When the parser sees the next line and sees a '<?php' it reports the error

you should remove the line altogether or change it to this
HTML Code:

<?php /* Load Comments template (on single post pages, and static pages, if set on options page): */
bfa_get_comments(); */  ?>


Garwen Nov 4, 2010 07:22 AM

Indeed, I wanted to remove the comments. People are not meant to leave comments on this blog, so we removed it entirely.
And this little mistake on my side did the trick.

juggledad, you are my hero for today :)

Thanks a lot.


All times are GMT -6. The time now is 08:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.