Jump to content

Archived

This topic is now archived and is closed to further replies.

brightonkeller

I keep getting crawl errors (and error 500) can you please help?

Recommended Posts

brightonkeller

I apologize for posting such a site specific issue, but I'm a little overwhelmed with this issue. I've contact my hosting company (WP Engine) about the issue and here is what they said my error log reported:

 

The 500 error is a server error and when I see them, the first thing I do is look at the error logs... this is what I am seeing:

[Fri Sep 20 10:51:51 2013] [error] [client 71.195.51.0] PHP Parse error: syntax error, unexpected ';', expecting '{' in /nas/wp/www/cluster-1529/brightontheday/wp-content/plugins/hooker/hooker.php(100) : eval()'d code on line 1, referer:http://pinterest.com/pin/142637513171695278/

[Fri Sep 20 10:51:51 2013] [error] [client 71.195.51.0] PHP Parse error: syntax error, unexpected ';', expecting '{' in /nas/wp/www/cluster-1529/brightontheday/wp-content/plugins/hooker/hooker.php(104) : eval()'d code on line 1, referer:http://pinterest.com/pin/142637513171695278/

[Fri Sep 20 10:52:03 2013] [error] [client 96.126.109.135] PHP Warning: Missing argument 1 for PageLinesContentBox::section_template(), called in /nas/wp/www/cluster-1529/brightontheday/wp-content/themes/dms/editor/editor.handler.php on line 902 and defined in /nas/wp/www/cluster-1529/brightontheday/wp-content/plugins/pagelines-sections/contentbox/section.php on line 47

[Fri Sep 20 10:52:03 2013] [error] [client 96.126.109.135] PHP Parse error: syntax error, unexpected ';', expecting '{' in /nas/wp/www/cluster-1529/brightontheday/wp-content/plugins/hooker/hooker.php(100) : eval()'d code on line 1

[Fri Sep 20 10:52:03 2013] [error] [client 96.126.109.135] PHP Parse error: syntax error, unexpected ';', expecting '{' in /nas/wp/www/cluster-1529/brightontheday/wp-content/plugins/hooker/hooker.php(104) : eval()'d code on line 1

do you know how I can fix this? I have edited the "hooker" plugin written by simon recently. But I took a look at my hooks and I don't see anything strange? Also, I'm not sure what the handler.php is? Any help would be greatly appreciated! Thanks guys!

Additionally, here's a link of a screen shot of my webmaster tools showing the crawl errors.

 

[url]http://justpaste.it/d41g[/url]

Share this post


Link to post
Share on other sites
Simon

The PHP code in your hook is the problem, can you paste that?

 

Also the contentbox warning is there because contentbox is for PageLines Framework not DMS, it works but will show warnings like that. Use media/text area sections to do the same thing.

Share this post


Link to post
Share on other sites
brightonkeller

Simon_P Thanks for getting back to me!!

 

So I have a few hooks...here are the ones with PHP in them:

<?php if (function_exists('nrelate_related')) nrelate_related(); ?>


and this one (i think)

<div id="afterpostshare">
<ul id="socialshare">
<li><a rel="nofollow" class="share" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php echo urlencode(get_the_title($id)); ?>" title="Share this post on Facebook" target="_blank"><i class="icon-facebook "></i>
</a></li>


<li><a rel="nofollow" href="http://twitter.com/home?status=<?php echo urlencode("Currently reading: "); ?><?php the_permalink(); ?><?php echo urlencode(" via @brightonkeller"); ?>" title="Share this article with your Twitter followers" target="_blank"><i class="icon-twitter"></i></a></li>


<li><a href="javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" class="share"><i class="icon-pinterest "></i>
</a></li>


</ul>

Share this post


Link to post
Share on other sites
Simon

You cant open and close PHP tags multiple times like that.

Share this post


Link to post
Share on other sites

×