Can’t activate Plugin: unexpected T_STRING, expecting T_FUNCTION [closed]
It’s probably due to an unclosed curly brace somewhere. Can include more code? The line numbers in the error message are not always where the actual issue is.
It’s probably due to an unclosed curly brace somewhere. Can include more code? The line numbers in the error message are not always where the actual issue is.
Short and anticlimactic answer: the big fancy corporate firewall protecting the server was set to HTTP “application” mode. We switched it over to simply allowing all traffic on port “80” and the issue was solved. Rarst♦ was right!
wp-login is the file used to send user passwords e.g. new user registrations user lost passwords It might be you’re getting a lot of registration spam? Is registration turned off on your install (settings > general)?
Using a tool to monitor itself is always a problematic idea, if wordpress has errors how do you know that those errors do not impact your integration code in a way which prevents them from being reported upstream? Your best option is probably to setup error reporting levels in php and if applicable in wordpress, … Read more
Your child theme’s functions.php file should be an empty file to which you can add code specific to your child theme. It appears you have copied the functions.php file from the parent theme instead. See this note about functions.php in Child Themes: Unlike style.css, the functions.php of a child theme does not override its counterpart … Read more
Found the problem. It was a problem with my host, in the path the ID3 folder name was uppercase, while on the server for some reason it was lowercase, this is why it didn’t find it.
Xan is a georgian letter as I can find in Google, but it’s not a valid Unicode Script for RegEx, you can find a list of the Unicode Scripts here: http://www.regular-expressions.info/unicode.html Maybe try using another one than Xan, maybe Georgian: preg_match( ‘/[\p{Georgian}]/u’, $content, $results ); Let me know how that goes.
This error: Fatal error: Call to a member function insert() on a non-object Means that $wpdb isn’t instantiated so you are running your code too early or out of WordPress context– for example, in an exterior PHP file accessed directly, which is what I suspect (Poorly conceived AJAX request perhaps?). As mentioned, the code has … Read more
That’s a PHP warning, not technically an error, and isn’t real critical. It’s due to your webhost updating the version of PHP; and the theme StandardTheme_272 should initialize an object before setting a property. See if there is a theme update. If not, https://stackoverflow.com/questions/14806959/how-to-fix-creating-default-object-from-empty-value-warning-in-php for instructions on how to fix the theme. You can temporarily … Read more
Please look up before posting your questions ! There is a detailed answer available. https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php