Skip to content
Become developer

Become developer

How to become developer

  • Home
  • Symfony
  • Linux
  • About us
  • Home
  • Symfony 3 The CSRF token is invalid. Please try to resubmit the form [Solution]

All posts by alex

alex
March 9, 2020

Symfony 3 The CSRF token is invalid. Please try to resubmit the form [Solution]

If you get this problem: Symfony 3 The CSRF token is invalid. Please try to resubmit the form Solution 1 : In your app/config/config.yml change : save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"to : save_path: ~ Solution 2 :


No Comments InSymfony 3
alex
January 7, 2020

[Solution] ERROR 1698 (28000): Access denied for user ‘root’@’localhost’

Basically means that: db_users using it, will be “auth” by the system user credentias. You can see if your root user is set up like this by doing the following: As you can see in the query, the root user is using the auth_socket plugin There are 2 ways to solve this: You can set the root user to use the mysql_native_password plugin You can create

Read More


No Comments InLinux
alex
December 16, 2019

[Solution] Check if a string contains a specific word?

It’s very easy like this :


No Comments InPhp
alex
December 16, 2019

[Solution] Prevent SQL injection in PHP?

Using PDO (for any supported database driver): 2. Using MySQLi (for MySQL):


No Comments InPhp
alex
December 16, 2019

[Solution] PHP “Notice: Undefined variable”, “Notice: Undefined index” “Notice: Undefined offset”

Q1: this notice means $varname is not defined at current scope of the script. Q2: Use of isset(), empty() conditions before using any suspicious variable works well. Solution Anoter solution :


No Comments InPhp
alex
November 15, 2019

[Solution] chown mysql:mysql /var/run/mysqld


No Comments InLinux
alex
November 15, 2019

[Solution] How to reset a MySQL root password easily

Stop the MySQL service sudo /etc/init.d/mysql stop Start MySQL without a password sudo mysqld_safe –skip-grant-tables & Connect to MySQL mysql -uroot Set a new MySQL root password Stop and start the MySQL service Log in to the database mysql -u root -p Warning mysqld_safe Directory ‘/var/run/mysqld’ for UNIX socket file don’t exists Method 2


No Comments InLinux
alex
November 4, 2019

[Solution] Redirect Non-WWW to WWW on Bitnami WordPress

Edit this file Change ServerName and ServerAlias to your domain, then Add these lines Then restart apache


No Comments InBitnami Linux
alex
October 31, 2019

[Solution] Bitnami permission issues

Permission issues with WordPress


No Comments InLinux Wordpress
alex
January 22, 2019

[Solution] How can I list the current Apache 2 virtual hosts from the command line

Sometimes you need to get your virtual host file, you can get them by : a2query -s or apachectl -S  


No Comments InLinux

Posts navigation

1 2 3

Recent Posts

  • Symfony 3 The CSRF token is invalid. Please try to resubmit the form [Solution]
  • [Solution] ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
  • [Solution] Check if a string contains a specific word?
  • [Solution] Prevent SQL injection in PHP?
  • [Solution] PHP “Notice: Undefined variable”, “Notice: Undefined index” “Notice: Undefined offset”

Last Tips Symfony


    • Symfony 3 The CSRF token is invalid. Please try to resubmit the form [Solution]
    • [Solution] ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
    • [Solution] Check if a string contains a specific word?
    • [Solution] Prevent SQL injection in PHP?
    • [Solution] PHP “Notice: Undefined variable”, “Notice: Undefined index” “Notice: Undefined offset”
    • [Solution] chown mysql:mysql /var/run/mysqld
    • [Solution] How to reset a MySQL root password easily
    • [Solution] Redirect Non-WWW to WWW on Bitnami WordPress
    • [Solution] Bitnami permission issues
    • [Solution] How can I list the current Apache 2 virtual hosts from the command line

    Last Tips Linux

    • [Solution] ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
    • [Solution] chown mysql:mysql /var/run/mysqld
    • [Solution] How to reset a MySQL root password easily
    • [Solution] Redirect Non-WWW to WWW on Bitnami WordPress
    • [Solution] Bitnami permission issues
    • [Solution] How can I list the current Apache 2 virtual hosts from the command line
    • [Solution] Create a MySQL database character with charset UTF-8 under Linux Ubuntu
    • [Solution] Add Expires headers on Ubuntu
    • [Solution] Invalid command ‘RewriteCond’, perhaps misspelled or defined by a module
    • phpMyAdmin not found after installation
    French version : www.comment-devenir-developpeur.com