authentictech
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Edin] Syntax error in edin 1.2.9I’m still getting the error running PHP 7
Forum: Themes and Templates
In reply to: [Edin] Syntax error in edin 1.2.9I’ve been using the Edin theme for several months on PHP 5.6 without any problems.
Just prior to upgrading Edin, I upgraded to WordPress to 4.8.1 and the update process timed out while incomplete so I had to upload a fresh WordPress.
I had also prior updated a few other plugins but no problems after doing that. I didn’t add any new plugins or activate/deactivate any prior to experiencing this problem.
Jetpack was installed and active but I haven’t configured or used it. I’ve now deleted it.
I’m confused. As a syntax error would mean a problem with the code itself, not a runtime error caused by other code, I don’t know what else to do and I’ve no idea why it is calling out this line of code as a syntax error.
The full, original function as taken from the code on my site is:
function edin_get_attachment_image_src( $post_id, $post_thumbnail_id, $size ) { if ( function_exists( 'jetpack_featured_images_fallback_get_image_src' ) ) { return jetpack_featured_images_fallback_get_image_src( $post_id, $post_thumbnail_id, $size ); } else { return wp_get_attachment_image_src( $post_thumbnail_id, $size )[0]; } }When I remove the [0] it works and when I re-add it, I get the syntax error.
I’m now using PHP 7.
As long as I leave the [0] out it works, but I’d prefer to find out what the problem is.
Any idea where I should go next?
Thanks.
Forum: Themes and Templates
In reply to: [Edin] Syntax error in edin 1.2.9It’s running PHP 5.6. Thanks.
Just confirming that the 6.1.0 release fixed my problems. Many thanks.
Thank you! 🙂
Forum: Plugins
In reply to: [Social Friends] Facebook recent posts have disappearedThanks bro
I can’t be too specific but the last major thing I did a few days before I noticed the issue was update WP to 4.8.1. I am sure I would have noticed it before then but could have missed it just after updating. I only work on the site about once a week so, if it was due to anything I did, I’d have to put the start of the issue at around the time of updating WP.
I was wrong about it being related to rich text widgets because the same thing happens in page posts.
As seen here: http://www.drangeladams.com/facebook-members-temporary-test/
Thanks again!
- This reply was modified 8 years, 9 months ago by authentictech.
Forum: Plugins
In reply to: [Social Friends] Facebook recent posts have disappearedI’ve replaced the plugin with another but if you want me to create a page with the plug-in active I can do so.
Forum: Fixing WordPress
In reply to: links with RK=0/RS@wnthne Your hosting control panel might have a feature for blocking IP addresses; otherwise use this:
<Limit GET POST HEAD>
order allow,deny
deny from X.X.X.X
</Limit>Forum: Plugins
In reply to: [Facebook Comments for WordPress] Incorrect App IDCheck and make sure that it is not something to do with https://developers.facebook.com/roadmap/
Facebook has made some changes to their comments system which may stop this plugin working properly.
This plugin may need to be upgraded but, as you can see, it has not been for a while.
Forum: Plugins
In reply to: [Facebook Comments for WordPress] Comment count goneSorry replied to wrong post.
Thats’s OK. I can’t spend much time on it either as it is someone else’s site and I am not being paid to fix it. As long as the other plugin makes it work the owner is happy.
I thought this might be worth mentioning, as I had set up PHP logging and I found this entry:
[12-Feb-2012 19:54:13] PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /wp-includes/functions.php:3587) in /wp-content/plugins/si-contact-form/si-contact-form.php on line 1810
Could this be a problem?
P.S. If you’re curious, Mike, I can give mail you a login but, otherwise, no problem.
I used the WP SMTP Config plugin as the WP Mail SMTP plugin mentioned on your help page is not marked as compatible with WordPress 3.3.1. That has caused messages to now be sent.
I’m curious, assuming I did correctly try all steps on http://www.fastsecurecontactform.com/email-does-not-send would there be any particular issue that you think is likely the cause of this problem? The reply from the webhost (Servage.net) suggests they do not have any measures in place that could be deliberately blocking the form messages.
Anyway, it might be impossible to answer this without logging into the website but as it is working now I won’t take up more of your time with that option.
Thanks.
Thanks. I had used that page as a checklist previously to eliminate all the reasons.
I am just waiting to hear back from the web host about a few things.
I did also just deactivate and delete the plugin and then install a fresh copy with default settings but it didn’t send form messages either (although the FSCF tests worked with all 3 mailer functions).
I may also try WP Mail SMTP plugin. Then I may open a ticket if I don’t get anywhere with that.
Regards.
Forum: Fixing WordPress
In reply to: Malware detectedYour articles are stored in the database so you shouldn’t lose your content. To be on the safe side, do a database backup and your entire wp-content folder (which you can check for malware scripts after downloading them – a good A/V package should detect anything unusual).
You can also back up your wp-config.php file – it shouldn’t be replaced by a new WordPress installation but there’s no harm in being cautious.
Back up .htaccess to if you have made any changes to it. Then compare with the new one and re-add any changes you previously made to the old one (making sure they aren’t malicious changes added by the hacker of course).