I tried to install wordpress site from server to local machine.I got the following error:
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\beta\wp-content\themes\canvas\header.php on line 4375
I looks like you have a syntax error in your theme.
Make sure you remove the closing php tag "?>" at the end of your wp-content/themes/canvas/functions.php file of that theme. Additionally removing any trailing blank lines at the end of the functions.php file.
Related
i just moved wordpress from hosting server to my local machine. but got an error like this
Parse error: syntax error, unexpected end of file in /opt/lampp/htdocs/wp/wp-admin/includes/class-wp-list-table.php on line 1190
How to solved
It means that the file is incomplete/broken. You did not move the full file but just part of it. You can fix it by either downloading the file from hosting server again (just that one) or by downloading wordpress from wordpress.org and copy that file.
Pls check the file:class-wp-list-table.php on line 1190,
Probably you have modified it, So just delete what you added in Line 1190, then try again!
When I was in Hostgator server, it wasn't showing any warning. But when I tried to move the files to my friend's Godaddy Linux server, and when I accessed the site, am seeing the following warning at the top of the page.
Warning: Invalid argument supplied for foreach() in
/wp-content/plugins/woocommerce/includes/class-wc-post-types.php on
line 169
I have the WP-DEBUG constant in wp-config file set to FALSE.
Also, tried adding a php.ini file with the following contents:
display_errors = Off
expose_php = Off
But not getting resolved. Any reason why it happens in Godaddy?
EDIT
Even updated the Woocommerce plugin to the latest version. But still no use.
this mostly caused by PHP version so try to check which version of PHP you are using.
Getting this error after a forced wordpress upload (I was working in the database when at one point of time I got an alert - while on the backend, with only one option to upgrade to the newer available version):
Fatal error: Cannot redeclare _421736532() (previously declared in /home/user/domains/mydomain.com/public_html/wp-content/themes/twentyelevenmodified/header.php(68) : eval()'d code:1) in /home/user/domains/mydomain.com/public_html/wp-content/themes/twentyelevenmodified/header.php(68) : eval()'d code on line 1
The above is when I try mydomain.com
When I try mydomain.com/wp-admin/, I am redirected to wp-login.php and getting the following error:
Fatal error: Cannot redeclare _421736532() (previously declared in /home/user/domains/mydomain.com/public_html/wp-login.php(80) : eval()'d code:1) in /home/user/domains/mydomain.com/public_html/wp-login.php(80) : eval()'d code on line 1
Pulling my hair out trying different things since 5 hours now. Any help will be appreciated.
EDIT: After testing, I found that the function.php file is correctly calling function twentyeleven_header_style() and the problem is coming just after calling this function. So it's the next function call that is causing the problem. If I could know what is the next function !!!
Wordpress doesn't use functions with those names. Deactivate your plugins or rename the plugins folder.
If that doesn't work then it's probably coming from your theme. Rename your theme folder so wordpress will revert to the default (assuming the default theme exists).
It sounds like you purchased a theme or plugin with obfuscated code and it's using eval() to run it and probably making a call home.
After much research, I found that the site in question was hacked. More than 100 files were corrupted with codes. I cleaned them all and now things are functioning.
For others facing the same problem, download the whole files to your computer and look for eval codes (can be easily recognized).
I am using a nivo slider for a wordpress theme... just out of the blues the slider broke. You can see it here www.habitude.ca
When i copy the img url to the browser I get the following error.
A TimThumb error has occured
The following error(s) occured:
Could not get a lock for writing.
Query String : src=http://habitude.ca/wp-content/uploads/2012/07/rock_bottom1.jpg&h=316&w=980
TimThumb version : 2.8
Any help would be greatly appreciated.
This error means some sort of directory permissions issue on the cache directory so make sure your php script can write to the cache directory.
Wondering if you can help me. I have installed a theme that comes with TimThumb.
However when I set the featured image, and view the blog, the images doesn't load, when I right click and click view image in a new tab I get the following error message:
A TimThumb error has occured
The following error(s) occured:
Could note create the index.html file.
Could note create cache clean timestamp file.
Query String : src=http://demo.webempire.net.au/shi/wordpress/wp-content/uploads/2012/01/menora2_kitchen011.jpg&w=144&h=94
TimThumb version : 2.8.3
Any suggestions/help would be appreciated.
I ran into this issue.
define ('FILE_CACHE_DIRECTORY', '');
was set in timthumb-config.php . This gave me these errors:
touch() [<a href='function.touch'>function.touch</a>]: Utime failed: Permission denied in timthumb/timthumb.php on line 469
in timthumb/error-log.
Commenting out the line in timthumb-config.php set timthumb.php to use ./cache as the cache folder instead of the system tmp folder, and fixed avoided the permission issues.
The problem was that another user already had a timthumb_cacheLastCleanTime.touch in /tmp
Wiping didn't work but changing the permissions to 777 did. Via filezilla.