• Greetings,

    I recently updated my PHP version to 7.2. Upon attempting to login to my WP site, I receive the following error:

    Warning: Use of undefined constant get_magic_quotes_gpc – assumed ‘get_magic_quotes_gpc’ (this will throw an Error in a future version of PHP) in /homepages/14/d92438909/htdocs/wp-content/plugins/cforms/lib_functions.php on line 360

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/14/d92438909/htdocs/wp-content/plugins/cforms/lib_functions.php:360) in /homepages/14/d92438909/htdocs/wp-includes/pluggable.php on line 1219

    Downgrading to an earlier version (e.g., 7.1) appears to resolve the issue.

    Any suggestions on what might be the problem?
    Thank in advance!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • It looks like it might be an issue with your cforms plugin. You may want to check with the plugins support docs and see if there are any issues with php 7.2 compatibility. Here is the info for the version of cforms that you are currently using:

    
    === cformsII - contact form ===
    Requires at least: 2.0.2
    Tested up to: 2.7
    Stable tag: 10.1
    

    Here is a link to the current version and information, including some security tips.

    https://www.ads-software.com/plugins/cforms2/

    Hi,

    You can turn off these warnings by following these steps:
    1. Navigate to your wordpress root directory.
    2. Edit wp-config.php file and add the following code in the next line after the php tag:
    error_reporting(0);
    2. Make sure that WP_DEBUG is set to false in wp-config.php file
    define( 'WP_DEBUG', false );

    Thread Starter jerethi99

    (@jerethi99)

    @claytonjames

    Thanks for the response. Out of curiosity, how did you determine this?

    @jerethi99

    The error messages in this case help to tell you where to look for the problem.

    “Warning: Use of undefined constant get_magic_quotes_gpc – assumed ‘get_magic_quotes_gpc’ (this will throw an Error in a future version of PHP) in /homepages/14/d92438909/htdocs/wp-content/plugins/cforms

    That first message is an alert that there could be a php compatibility issue with some versions of PHP going forward. That led me to take a look at the version of the cforms plugin that you are currently using. I was able to browse to the readme.txt file and quickly gather that info right from your site.

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/14/d92438909/htdocs/wp-content/plugins/cforms/lib_functions.php:360″

    The second part of the error message also points directly to a file in the cforms plugin directory. That’s usually a pretty good indicator that you could have a pluign related conflict of some sort.

    Some info on troubleshooting that could come in handy in the future if you need it – https://codex.www.ads-software.com/FAQ_Troubleshooting

    Dion

    (@diondesigns)

    2. Edit wp-config.php file and add the following code in the next line after the php tag: (not gonna repeat it)

    This is bad and potentially dangerous advice. One hopes a moderator will redact it. (Sorry for the hijack, but no one should ever add that code to their site to fix a problem.)

    voltiusz

    (@voltiusz)

    I have the same problem but a different error message:

    Warning: Illegal string offset ‘remember’ in?/homepages/40/d600243761/htdocs/clickandbuilds/londosound/wp-includes/user.php?on line?41??Warning: Cannot assign an empty string to a string offset in?/homepages/40/d600243761/htdocs/clickandbuilds/londosound/wp-includes/user.php?on line?41??Warning: Illegal string offset ‘user_login’ in?/homepages/40/d600243761/htdocs/clickandbuilds/londosound/wp-includes/user.php?on line?56??Fatal error: Uncaught Error: Cannot create references to/from string offsets in /homepages/40/d600243761/htdocs/clickandbuilds/londosound/wp-includes/user.php:56 Stack trace: #0 /homepages/40/d600243761/htdocs/clickandbuilds/londosound/wp-login.php(806): wp_signon(”, ”) #1 {main} thrown in?/homepages/40/d600243761/htdocs/clickandbuilds/londosound/wp-includes/user.php?on line?56

    Downgrading to 5.6 resolves the issue. Page in question is https://www.londosound.com

    Thank you in advance for any help.

    • This reply was modified 6 years ago by voltiusz.
    • This reply was modified 6 years ago by voltiusz.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘After updating to PHP 7.2, can’t login’ is closed to new replies.