Title: New Update problem
Last modified: August 20, 2016

---

# New Update problem

 *  Resolved [ohoud12](https://wordpress.org/support/users/ohoud12/)
 * (@ohoud12)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/)
 * The last for this plugin make a problem in capabilities.php and pluggable.php
   fils in wp-includes
 * when i apply the new update all the site crashed i juste send a new fils to the
   server and all the things back to normal
 * [http://wordpress.org/extend/plugins/leaguemanager/](http://wordpress.org/extend/plugins/leaguemanager/)

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/new-update-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/new-update-problem/page/2/?output_format=md)

 *  [stabiasport](https://wordpress.org/support/users/stabiasport/)
 * (@stabiasport)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567453)
 * Help! I also update the plugin with the site and the control panel are no longer
   accessible, as do I delete the update and riavvere the site as before?
 *  [matthewredican](https://wordpress.org/support/users/matthewredican/)
 * (@matthewredican)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567461)
 * It happened to me too. To bring the website up quickly, I was able to rename 
   the directory of the plugin to leaguemanager-1 (or whatever you want) in my file
   manager. That brings the website back up but it doesn’t bring the LeagueManager
   back.
 * I would appreciate if anyone can offer a solution to the LeagueManager plug-in
   without losing the data.
 * Thanks in advance,
    Matthew
 *  [matthewredican](https://wordpress.org/support/users/matthewredican/)
 * (@matthewredican)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567463)
 * I also just found [this post](http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-4/page/2),
   which worked for me at [http://www.BramptonFlames.com](http://www.BramptonFlames.com):
 * > Instead of adding a line to capabilities.php (where it will be overwritten 
   > by updates), I added this line right before require_once(ABSPATH . ‘wp-settings.
   > php’); in my wp-config.php file:
   > require_once(ABSPATH . ‘wp-includes/pluggable.php’);
 * I did this, changed the name of my plug-in directory back to leaguemanager and
   activated the plugin in the Admin Panel. All back to normal.
 * A big thanks to Michael Dozark for his post. A year later, it is still helping!
 * Matthew
 *  [Marselo89](https://wordpress.org/support/users/marselo89/)
 * (@marselo89)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567480)
 * Hi, I used the method of Michael Dozark, the site is back online, I activated
   the plug-in leaguemanager but it generated this error:
 * Warning: file_exists () [function.file-exists]: open_basedir restriction in effect.
   File (/ var/www/html/wp-content/uploads/leaguemanager/thumb_log5.jpg) is not 
   Within the allowed path (s): (/ :/ members States2) in / members / mysite / wp-
   content / plugins / leaguemanager / lib / core.php on line 298
 * how can I find a solution?
 * Marselo89
 *  [hamdey](https://wordpress.org/support/users/hamdey/)
 * (@hamdey)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567481)
 * Its totaly crash my site… Im lucky becouse I have a backupp…
 *  [Marselo89](https://wordpress.org/support/users/marselo89/)
 * (@marselo89)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567482)
 * I solved the problem:
 * in core.php change line 313 from:
 * trailingslashit return ($ _SERVER [‘DOCUMENT_ROOT’]). dirname (substr ($ file,
   strlen ($ _SERVER [‘HTTP_HOST’]) +8, strlen ($ file))). ‘/ thumb_’. basename (
   $ file);
 * with:
 * trailingslashit return ($ _SERVER [‘ABSPATH’]). dirname (substr ($ file, strlen(
   $ _SERVER [‘HTTP_HOST’]) +8, strlen ($ file))). ‘/ thumb_’. basename ($ file);
 *  [weblegion](https://wordpress.org/support/users/weblegion/)
 * (@weblegion)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567497)
 * This is not working for me [@marselo89](https://wordpress.org/support/users/marselo89/).
   I get this error if i aply your fix: Parse error: syntax error, unexpected T_STRING,
   expecting T_VARIABLE or ‘$’ in…
 *  [Marselo89](https://wordpress.org/support/users/marselo89/)
 * (@marselo89)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567529)
 * Have you edited before the wp-config.php file with the method of Michael Dozark?
 *  [matthewredican](https://wordpress.org/support/users/matthewredican/)
 * (@matthewredican)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567535)
 * weblegion,
 * I used the Michael Dozark method and it worked perfectly. Did you combine this
   with one of the other suggestions above? I would suggest trying only one method
   at a time and reverting it to the original if it doesn’t work. Then trying the
   next.
 * There may be other variables preventing one method from working on an installation
   even if it worked on another (other plug-ins, patches etc).
 *  [neoncs](https://wordpress.org/support/users/neoncs/)
 * (@neoncs)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567537)
 * Marselo89:
 * You change should be
 * **return trailingslashit**($_SERVER[‘ABSPATH’]) . dirname(substr($file,strlen(
   $_SERVER[‘HTTP_HOST’])+8, strlen($file))) . ‘/thumb_’ . basename($file);
 * Not
 * trailingslashit return ($_SERVER[‘ABSPATH’]) . dirname(substr($file,strlen($_SERVER[‘
   HTTP_HOST’])+8, strlen($file))) . ‘/thumb_’ . basename($file);
 * Saying that even with the myconfig and this fix applied my site is still server
   500 error.. Time to investigate
 *  [weblegion](https://wordpress.org/support/users/weblegion/)
 * (@weblegion)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567538)
 * The Michael Dozark method worked also for me. Thanks a lot for the support!
 *  [weblegion](https://wordpress.org/support/users/weblegion/)
 * (@weblegion)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567539)
 * [@neoncs](https://wordpress.org/support/users/neoncs/) i noticed that mistake
   directly on the beginning and tried it out just like you posted. it didnt worked.
 *  [ben52](https://wordpress.org/support/users/ben52/)
 * (@ben52)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567540)
 * in lib/core php. on line 361
    you should close the div change: <div id=’message’
   class=’updated fade’><p>”.$this->getMessage().”</p></div”; to: <div id=’message’
   class=’updated fade’><p>”.$this->getMessage().”</p></div>”;
 *  [neoncs](https://wordpress.org/support/users/neoncs/)
 * (@neoncs)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567543)
 * Doing some further investigation the only changes made to this version to previous
   are actually the last few lines of code in the leaguemanager.php file.
 * This change is to patch an SQL injection exploit. All the changes above are not
   required. I tested this by just changing the leaguemanager.php back to the previous
   version and all worked fine.
 * The problem here is that with the old leaguemanager.php file is a security risk.
 * Here is the fix from line 531: It is missing additional braces and semi colon.
 * Change:
 * if (current_user_can(‘manage_leagues’)) {
    if ( isset($_POST[‘leaguemanager_export’]))
   $lmLoader->adminPanel->export((int)$_POST[‘league_id’], $_POST[‘mode’]) ; } ?
   >
 * TO:
 * if (current_user_can(‘manage_leagues’)) {
    if ( isset($_POST[‘leaguemanager_export’])){
   $lmLoader->adminPanel->export((int)$_POST[‘league_id’], $_POST[‘mode’]); } ;}?
   >
 *  [ben52](https://wordpress.org/support/users/ben52/)
 * (@ben52)
 * [13 years ago](https://wordpress.org/support/topic/new-update-problem/#post-3567547)
 * Hi neoncs,
    i think that your change have a mistake on it,pls. check and correct
   thanks

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/new-update-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/new-update-problem/page/2/?output_format=md)

The topic ‘New Update problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/leaguemanager.svg)
 * [LeagueManager](https://wordpress.org/plugins/leaguemanager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaguemanager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaguemanager/)
 * [Active Topics](https://wordpress.org/support/plugin/leaguemanager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaguemanager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaguemanager/reviews/)

 * 21 replies
 * 11 participants
 * Last reply from: [LaMonte Forthun](https://wordpress.org/support/users/lamontef/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/new-update-problem/page/2/#post-3567651)
 * Status: resolved