Mark Lyndersay
asked 8 years ago

Hello. I get the following error directly on installing the newest version of Focus 2 (v1.02)…
Can’t use function return value in write context in /home/content/p/a/s/pastorius/html/testfocus/wp-content/themes/dw-focus-2/includes/post-meta.php on line 233
I have tried an install from within WordPress as well as an upload of the unzipped folder into WP Themes via FTP.

3 Answers
DominicStaff
answered 8 years ago

Please send me username & password of your site, I will help you install the theme.

Mark Lyndersay
replied 8 years ago

Since this post is public, can you provide an email address for that information?

Dominic Staff
replied 8 years ago

You can use the private option under the answer box.

DominicStaff
answered 8 years ago

Please send me your FTP account for further checking. I have installed the theme on my localhost and it works fine but not on your site.

DominicStaff
answered 8 years ago

I have helped you resolve this issue, you can check your test site now.

Mark Lyndersay
replied 8 years ago

Hello. Thank you for your intervention. When I am ready to deploy the theme on my working website, is there anything in particular I should look out for to prevent a recurrence?

Dominic Staff
replied 8 years ago

Firstly, you can use the FTP to open the themes/dw-focus-2/includes/post-meta.php file on line 233, you can replace this line with the following code:
if ( !get_post_meta( $post_id, ‘views’, true ) ) {

Mark Lyndersay
replied 8 years ago

Thank you sir.

Powered by DW Question & Answer Pro