cristoto
Forum Replies Created
-
I tried but not work.
I think the warning isn’t the problem because with an authorize user (login into wordpress) the same code work. If I login with authroize login warning disappear.
I did it. I have the same problem with an authorizate user in wordpress work but with I unauthorizate user don’t.
I tried use “Run everywhere” but not work.
The code only work when customer send form.
Now you see that the screen appear empty when login with the test user.
But the cookie isn’t storage and the header redirection don’t work.I put a some var_dump() to see that the code enter into conditional and show when execute each function.
But before the updated the plugin, the script worked fine with this configuration.
If I put the code eveywhere, I need filter that only run in the page “logincliente” for example. Is it possible?
Is it possible that the problem is for this notice:
Notice: Undefined property: stdClass::$code in /var/www/html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()’d code on line 10- This reply was modified 5 years, 11 months ago by cristoto.
https://ibb.co/5GtbT6g this is my settings for all snippet.
https://ibb.co/DgfLQQC this is my plugin settings.
No, I only run in a page.
The log show these messages
[01-Jul-2020 11:24:07 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘WordPress_secret’ not found or invalid function name in /var/www/html/wp-includes/class-wp-hook.php on line 287
[01-Jul-2020 11:24:07 UTC] PHP Notice: Undefined index: back in /var/www/html/wp-content/themes/Avada-Child-Theme/functions.php on line 18
[01-Jul-2020 11:24:44 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘WordPress_secret’ not found or invalid function name in /var/www/html/wp-includes/class-wp-hook.php on line 287
[01-Jul-2020 11:24:44 UTC] PHP Notice: Undefined index: back in /var/www/html/wp-content/themes/Avada-Child-Theme/functions.php on line 18
[01-Jul-2020 11:24:44 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-includes/formatting.php:5600) in /var/www/html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()’d code on line 2
[01-Jul-2020 11:24:44 UTC] PHP Notice: Undefined property: stdClass::$code in /var/www/html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()’d code on line 6
[01-Jul-2020 11:24:44 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-includes/formatting.php:5600) in /var/www/html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()’d code on line 16
[01-Jul-2020 11:24:44 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-includes/formatting.php:5600) in /var/www/html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()’d code on line 18- This reply was modified 5 years, 11 months ago by cristoto.
I haven’t any code error.
The only change did it was update plugin. If it’s error code, the code not works with an authorized user too.
I activated the debug mode to show errors but wordpress doesn’t show any error in my code. It’s very strange.
I’m despereta with this problem, because our customers need it this sections to work.
You can check into the url: https://atecresa.com/logincliente/
User: [email protected]
Pass: ArPBtSJQaDdGThe php works because the api return ok, but some part of the code not work.
- This reply was modified 5 years, 11 months ago by cristoto.
In my code some parts work fine.
I did a echo after header function in my code, and I saw the result on the website correctly. But the header() function and setcookie aren’t working.Thank you for your quick answer.
I didn’t install any new plugin, I only updated some plugins include Woody Snippets.
I have differents snippets. I show you my login snippet.