• I get this error:

    Fatal error: Cannot re-assign auto-global variable _GET in wp-content/plugins/vr-frases/includes/vr-frases-functions.php on line 32

    This is actually not a wordpress version problem per se. It seems to be related to PHP, the plugin should not be passing $_GET in as a param into a param named $_GET.

    If you modify the following file, it solves this error:

    diff vr-frases/includes/vr-frases-functions.php.orig vr-frases/includes/vr-frases-functions.php
    32,33c32,33
    < function vr_frases_define_titles($_GET) {
    <       if( $_GET['aut'] ) {
    ---
    > function vr_frases_define_titles($GET) {
    >       if( isset($GET['aut']) ) {
    35c35
    <               $msg =  __( 'You are viewing all Quotes from: ', 'vr-frases' ).'<span class="search-item">'.$_GET['aut'].'</span>';
    ---
    >               $msg =  __( 'You are viewing all Quotes from: ', 'vr-frases' ).'<span class="search-item">'.$GET['aut'].'</span>';
    37c37
    <       } elseif ( $_GET['autor'] && !$_GET['frase'] && !$_GET['categoria'] ) {
    ---
    >       } elseif ( isset($GET['autor']) && !isset($GET['frase']) && !isset($GET['categoria']) ) {
    39c39
    <               $msg = __( 'You are viewing all the Authors with a name similar to: ', 'vr-frases' ).'<span class="search-item">'.$_GET['autor'].'</span>';
    ---
    >               $msg = __( 'You are viewing all the Authors with a name similar to: ', 'vr-frases' ).'<span class="search-item">'.$GET['autor'].'</span>';
    42c42
    <       } elseif ($_GET) {
    ---
    >       } elseif ($GET) {
    44,46c44,46
    <               .__( '[Quote: ', 'vr-frases' ).'<span class="search-item">'.$_GET['frase'].'</span>'
    <               .__( ']  |  [Author: ', 'vr-frases' ).'<span class="search-item">'.$_GET['autor'].'</span>'
    <               .__( ']  |  [Category: ', 'vr-frases' ).'<span class="search-item">'.$_GET['categoria'].']</span>';
    ---
    >               .__( '[Quote: ', 'vr-frases' ).'<span class="search-item">'.$GET['frase'].'</span>'
    >               .__( ']  |  [Author: ', 'vr-frases' ).'<span class="search-item">'.$GET['autor'].'</span>'
    >               .__( ']  |  [Category: ', 'vr-frases' ).'<span class="search-item">'.$GET['categoria'].']</span>';
  • The topic ‘Fatal error: Cannot re-assign auto-global variable _GET’ is closed to new replies.