Fatal error in file.php
got a problem there, nothing exasperating, but it’s still annoying me. I recently changed my domain without any problem (WP 2.7 then) – except for one: Trying to access the FTP-server via admin panel (e.g. to install or update a plugin) didn’t work and the error given was:
Warning: extract() [function.extract]: First argument should be an array in […] /wp-admin/includes/file.php on line 691
Lines 690 and 691 in file.php told me following:
if ( !empty($credentials) ) extract($credentials, EXTR_OVERWRITE);
Hoping that the problem would resolve itself I updated to 2.7.1. The old error message fortunately disappeared but now I find a new one:
Fatal error: Cannot use assign-op operators with overloaded objects nor string offsets in […]/wp-admin/includes/file.php on line 688
The respective code on 687 and 688 is:
if ( !empty($stored_credentials['port']) ) //save port as part of hostname to simplify above code. $stored_credentials['hostname'] .= ':' . $stored_credentials['port'];
The frontend of my site works good btw. Can’t find anything that helps me out on the net. Someone here with a possible explanation?
Thanks a lot,
- The topic ‘Fatal error in file.php’ is closed to new replies.