Site logo

Archived topic

Cannot connect.

4 replies · Started by Genie Bohn on July 25, 2015

Viewing posts 1–5 of 5

This is quite strange. I have several sites running with GP and it's premiums. One sight, listed below consistently struggles to connect regularly.

I am on my own server and my hosts are scratching their heads, but keep coming back to this log error message. Hoping you can see what is happening. All the other sites (same nameservers) work fine.

root@perioddrama [/home/lookback/public_html]# tail -f /usr/local/apache/logs/error_log
[Sat Jul 25 17:30:46 2015] [error] [client 182.73.165.90] PHP Fatal error: Can't use function return value in write context in /home/lookback/public_html/wp-content/themes/generatepress/inc/template-tags.php on line 479
[Sat Jul 25 17:33:48 2015] [error] [client 182.73.165.90] PHP Fatal error: Can't use function return value in write context in /home/lookback/public_html/wp-content/themes/generatepress/inc/template-tags.php on line 479

Look Bact at Me

themes/generatepress/inc/template-tags.php on line 197

please help me

$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);

printf( __( '<span class="posted-on">%1$s</span> <span class="byline">%2$s</span>', 'generate' ),
sprintf( '%3$s',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
$time_string
),

}
endif;

if ( ! function_exists( 'generate_excerpt_more' ) ) :
/**
* Prints the read more HTML to post excerpts
*/
add_filter( 'excerpt_more', 'generate_excerpt_more' );
function generate_excerpt_more( $more ) {
return ' ... ' . __('Ver mais', 'generate') . '';
}
endif;

if ( ! function_exists( 'generate_content_more' ) ) :
/**
* Prints the read more HTML to post content using the more tag
*/
add_filter( 'the_content_more_link', 'generate_content_more' );
function generate_content_more( $more ) {
$more_jump = apply_filters( 'generate_more_jump','#more-' . get_the_ID() );
return '<p>' . __('Read more', 'generate') . '</p>';
}

Hi there,

Are you getting any specific errors? Have you altered the file at all?

This archived topic is closed to new replies.