Support » Plugin: Football Pool » Some page content don't be diplayed after upgrade !

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author AntoineH

    (@antoineh)

    For some reason the page ID’s I store in the plugin options don’t match the actual page ID’s of the plugin.

    Can you check the options page of the plugin under the section “Plugin Pages”. Do these settings make sense, or are they completely off.

    i have check this.

    my website in old version :

    http://www.tyknauspro.fr/statistics/?view=matchpredictions&match=83

    test website with upgrade :

    http://cluster013.ovh.net/~bestpron/statistics/?view=matchpredictions&match=83

    id page is the same 🙁

    Plugin Author AntoineH

    (@antoineh)

    Hi sillery4ever,

    Can you try calling the page with debug settings on? Place the following code in your wp-config.php and post/mail any error messages.
    Second line will put a debug.log file in your /wp-content folder.

    // Enable WP_DEBUG mode
    define('WP_DEBUG', true);
    
    // Enable Debug logging to the /wp-content/debug.log file
    define('WP_DEBUG_LOG', true);

    info about debug settings

    I have enable debbug mode… look at : http://cluster013.ovh.net/~bestpron/statistics/?view=matchpredictions&match=83

    and in the log after to have acces to the page :

    [12-May-2014 15:09:08 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method allow_php_in_posts::menu_register_extras() should not be called statically in /homez.571/bestpron/www/wp-includes/plugin.php on line 470
    [12-May-2014 15:09:08 UTC] PHP Notice:  Undefined variable: folder in /homez.571/bestpron/www/wp-content/plugins/language-selector/language-selector.php on line 51
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:11 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method allow_php_in_posts::shortcode_advanced() should not be called statically in /homez.571/bestpron/www/wp-includes/plugin.php on line 192
    [12-May-2014 15:09:11 UTC] PHP Strict Standards:  Non-static method allow_php_in_posts::option_get() should not be called statically in /homez.571/bestpron/www/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php on line 396
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined offset: 1 in /homez.571/bestpron/www/wp-content/themes/kallyas/admin/framework/function-vt-resize.php on line 45
    [12-May-2014 15:09:11 UTC] PHP Notice:  getimagesize(): Read error! in /homez.571/bestpron/www/wp-content/themes/kallyas/admin/framework/function-vt-resize.php on line 50
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: extension in /homez.571/bestpron/www/wp-content/themes/kallyas/admin/framework/function-vt-resize.php on line 63
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined offset: 1 in /homez.571/bestpron/www/wp-content/themes/kallyas/admin/framework/function-vt-resize.php on line 45
    [12-May-2014 15:09:11 UTC] PHP Notice:  getimagesize(): Read error! in /homez.571/bestpron/www/wp-content/themes/kallyas/admin/framework/function-vt-resize.php on line 50
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: extension in /homez.571/bestpron/www/wp-content/themes/kallyas/admin/framework/function-vt-resize.php on line 63
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined offset: 1 in /homez.571/bestpron/www/wp-content/themes/kallyas/admin/framework/function-vt-resize.php on line 45
    [12-May-2014 15:09:11 UTC] PHP Notice:  getimagesize(): Read error! in /homez.571/bestpron/www/wp-content/themes/kallyas/admin/framework/function-vt-resize.php on line 50
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: extension in /homez.571/bestpron/www/wp-content/themes/kallyas/admin/framework/function-vt-resize.php on line 63
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Notice:  Undefined index: league_id in /homez.571/bestpron/www/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 400
    [12-May-2014 15:09:11 UTC] PHP Strict Standards:  Only variables should be assigned by reference in /homez.571/bestpron/www/wp-content/plugins/duplicate-post/duplicate-post-common.php on line 31
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:12 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:13 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method allow_php_in_posts::menu_register_extras() should not be called statically in /homez.571/bestpron/www/wp-includes/plugin.php on line 470
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined variable: folder in /homez.571/bestpron/www/wp-content/plugins/language-selector/language-selector.php on line 51
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:13 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:14 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:14 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:14 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:47 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:47 UTC] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method allow_php_in_posts::shortcode() should not be called statically in /homez.571/bestpron/www/wp-includes/shortcodes.php on line 287
    [12-May-2014 15:09:47 UTC] PHP Strict Standards:  Non-static method allow_php_in_posts::option_get() should not be called statically in /homez.571/bestpron/www/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php on line 307
    [12-May-2014 15:09:47 UTC] PHP Strict Standards:  Non-static method allow_php_in_posts::snippet_get() should not be called statically in /homez.571/bestpron/www/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php on line 363
    [12-May-2014 15:09:47 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method allow_php_in_posts::shortcode_advanced() should not be called statically in /homez.571/bestpron/www/wp-includes/plugin.php on line 192
    [12-May-2014 15:09:47 UTC] PHP Strict Standards:  Non-static method allow_php_in_posts::option_get() should not be called statically in /homez.571/bestpron/www/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php on line 396
    [12-May-2014 15:09:47 UTC] PHP Strict Standards:  Only variables should be assigned by reference in /homez.571/bestpron/www/wp-content/plugins/duplicate-post/duplicate-post-common.php on line 31
    [12-May-2014 15:09:47 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:47 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:47 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:48 UTC] PHP Notice:  Undefined property: WP_Query::$post in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:48 UTC] PHP Notice:  Trying to get property of non-object in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 537
    [12-May-2014 15:09:48 UTC] PHP Notice:  Undefined variable: center in /homez.571/bestpron/www/wp-content/plugins/wp-float/wp-float.php on line 538
    [12-May-2014 15:09:48 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method allow_php_in_posts::menu_register_extras() should not be called statically in /homez.571/bestpron/www/wp-includes/plugin.php on line 470
    [12-May-2014 15:09:48 UTC] PHP Notice:  Undefined variable: folder in /homez.571/bestpron/www/wp-content/plugins/language-selector/language-selector.php on line 51
    [12-May-2014 15:10:13 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method allow_php_in_posts::menu_register_extras() should not be called statically in /homez.571/bestpron/www/wp-includes/plugin.php on line 470
    [12-May-2014 15:10:13 UTC] PHP Notice:  Undefined variable: folder in /homez.571/bestpron/www/wp-content/plugins/language-selector/language-selector.php on line 51
    [12-May-2014 15:10:48 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method allow_php_in_posts::menu_register_extras() should not be called statically in /homez.571/bestpron/www/wp-includes/plugin.php on line 470
    [12-May-2014 15:10:48 UTC] PHP Notice:  Undefined variable: folder in /homez.571/bestpron/www/wp-content/plugins/language-selector/language-selector.php on line 51

    [Moderator Note: Please post log files between backticks or use the code button.]

    Plugin Author AntoineH

    (@antoineh)

    I see one football pool related message in the log. Can you try the following.

    Change line 400 in classes/class-football-pool-pool.php to:

    'league_image' => ( isset( $row['league_id'] ) ? $this->league_image( $row['league_id'] ) : '' ),

    Plugin Author AntoineH

    (@antoineh)

    Still no content. Annoying.

    I tried an update on an old database dump you once sent me and I can still see the predictions for match 83 after I switch to a default theme. Maybe the content filter priority problem is causing this? See this post for details on how to fix this.

    One thing I noticed in your install (at least in the old dump) is that some of the plugin’s pages are deleted. That causes a notice on my install, so I put an extra check on my get_page_link function for v2.4.2 (the trunk can be downloaded here).

    btw. the error messages you’re seeing at the moment are all caused by other plugins/themes.

    sorry but …

    i have not enough time before the world cup to make this debugs methods. i think i will wait after the world cup to try to upgrade. i will manage my website with old version for the wordlcup.

    I have 180 players now… and wait many subscriptions in few days !

    I cant take the risk to have problems. i think it is more secure !

    see u soon … after WC2014 😉

    Hello Antoine,

    I can not currently upgrade as too risky for my competition world cup.

    During the Wordlcup, i think have more than 300 players and 2 of 3 competitions will be completed. So, I am annoyed because I would have liked to disabled calculating the competitions are completed.

    Would you have a tip for me to disable the calculation which matches the competition is over?

    I think to delete all completed match , but with this method i will lost all the stats and ranking , isn’t it ?

    TY

    Nano

    Plugin Author AntoineH

    (@antoineh)

    If you delete a match all predictions and scores will be lost after a calculation. So you shouldn’t do that.

    I don’t have a tip on how to disable some rankings. The changes I did for this in the latest version are relatively simple, but I don’t know if my changed files (e.g. the class for the calculation) is relying on other changed parts. Otherwise you could try to just add a calculate column to the ranking table (based on the data model of the new version) and replace the calculation class with the one from the new version.

    I had a ‘calculate’ column in rankings table. (with value 1 or 0)

    I replace code in football-pool/admin/class-football-pool-admin-score-calculation.php by the new code.

    But the calculaton don’t run… i think there are some other changes. 🙁

    I have tru to modify in calculation class like that :

    $sql = “SELECT COUNT( * ) FROM {$prefix}rankings WHERE user_defined = 1”;

    replace by

    $sql = “SELECT COUNT( * ) FROM {$prefix}rankings WHERE user_defined = 1 AND calculate = 1”;

    When i launch the calculation process, only the ranking definined by calculate=1 are now calculated… It is GOOD but …. other ranking are emptied 🙁

    I would like to keep the results of this ‘non actived’ rankings.

    Could you tell me if it is possible to desactived rankings but keep displayed the last calculated ranking result ?

    I think the score history is emptied before each calculation, isn’t it ?

    Is it possible to delete only the line where ranking is actives ?

    TY

    nano

    I have tru to modify in calculation class like that :

    $sql = “SELECT COUNT( * ) FROM {$prefix}rankings WHERE user_defined = 1”;

    replace by

    $sql = “SELECT COUNT( * ) FROM {$prefix}rankings WHERE user_defined = 1 AND calculate = 1”;

    When i launch the calculation process, only the ranking definined by calculate=1 are now calculated… It is GOOD but …. other ranking are emptied 🙁

    I would like to keep the results of this ‘non actived’ rankings.

    Could you tell me if it is possible to desactived rankings but keep displayed the last calculated ranking result ?

    I think the score history is emptied before each calculation, isn’t it ?

    Is it possible to delete only the line where ranking is actives ?

    TY

    nano

    Plugin Author AntoineH

    (@antoineh)

    You will have to add the calculate = 1 clause in some other parts as well to make sure those rankings aren’t deleted. But I think it is better to eliminate the source problem so you can upgrade without problems. Instead of trying to insert the changes in your version with the risk of breaking stuff.

    I am totaly agree with you… but upgrade dont run with my site configuration. Too many problems to fix… for only one “update” (Possibility to desactivate a ranking)

    I have tried many times to debug… but my knowledge dont permit that !

    🙁

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Some page content don't be diplayed after upgrade !’ is closed to new replies.