I tried to work on my security parameters on drupal... I went into the security page on drupal and chmod 664 the following folders: themes, modules, cache, site, profiles and include. Simultaneously, i also turned off messages display. And i configured my site address in the settings file.
When i tried to update everything to check out the settings, a fatal error prevented me to access my website. User_class was not accessible. So i went into my MYSQL database and turned to 1 the user module. Now, the message is:
Fatal error: Class 'PHPMailer' not found in /home/mysite/www/sites/all/modules/phpmailer/includes/phpmailer.class.inc on line 12
I updated my website, but doesn't work.
Here is what i get:
Call Stack
1 0.0005 236608 {main}( ) ../index.php:0
2 0.0186 654760 drupal_bootstrap( ) ../index.php:20
3 0.2480 6656728 _drupal_bootstrap_full( ) ../bootstrap.inc:2278
4 0.9109 25055992 module_invoke_all( ) ../common.inc:5193
5 0.9650 26510896 call_user_func_array ( ) ../module.inc:895
6 0.9651 26511064 mailsystem_init( ) ../module.inc:895
7 0.9651 26511104 mailsystem_get_classes( ) ../mailsystem.module:17
8 0.9854 26938376 class_exists ( ) ../mailsystem.module:306
9 0.9854 26938672 drupal_autoload_class( ) ../mailsystem.module:0
10 0.9854 26938720 _registry_check_code( ) ../bootstrap.inc:3103
11 0.9883 27012760 require_once( '/home/mysite/www/sites/all/modules/phpmailer/includes/phpmailer.class.inc' ) ../bootstrap.inc:3179
i explored the web, no real answer... I did a chmod - r 777 to all the files i chmod. Of course, phpmailer is well set up...
Update: i tried drush en -y menu
and here is the answer:
root@ns333613:/home/mysite/www# drush en -y menu
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
array_keys() expects parameter 1 to be array, null given common.inc:7102 [warning]
array_keys() expects parameter 1 to be array, null given common.inc:7102 [warning]
PHP Fatal error: Call to undefined function menu_get_menus() in /home/mysite/www/sites/all/modules/xmlsitemap/xmlsitemap_menu/xmlsitemap_menu.module on line 37
PHP Stack trace:
PHP 1. {main}() /usr/share/php/drush/drush.php:0
PHP 2. drush_main() /usr/share/php/drush/drush.php:16
PHP 3. _drush_bootstrap_and_dispatch() /usr/share/php/drush/drush.php:61
PHP 4. drush_bootstrap_to_phase() /usr/share/php/drush/drush.php:81
PHP 5. drush_bootstrap() /usr/share/php/drush/includes/bootstrap.inc:308
PHP 6. _drush_bootstrap_drupal_login() /usr/share/php/drush/includes/bootstrap.inc:185
PHP 7. drush_drupal_login() /usr/share/php/drush/includes/bootstrap.inc:979
PHP 8. user_load() /usr/share/php/drush/includes/drupal.inc:138
PHP 9. user_load_multiple() /home/mysite/www/modules/user/user.module:366
PHP 10. entity_load() /home/mysite/www/modules/user/user.module:291
PHP 11. entity_get_controller() /home/mysite/www/includes/common.inc:7849
PHP 12. entity_get_info() /home/mysite/www/includes/common.inc:7883
PHP 13. drupal_alter() /home/mysite/www/includes/common.inc:7719
PHP 14. xmlsitemap_menu_entity_info_alter() /home/mysite/www/includes/module.inc:1101
Fatal error: Call to undefined function menu_get_menus() in /home/mysite/www/sites/all/modules/xmlsitemap/xmlsitemap_menu/xmlsitemap_menu.module on line 37
Call Stack:
0.0013 254960 1. {main}() /usr/share/php/drush/drush.php:0
0.0767 2486840 2. drush_main() /usr/share/php/drush/drush.php:16
0.6131 6590152 3. _drush_bootstrap_and_dispatch() /usr/share/php/drush/drush.php:61
0.9727 6595496 4. drush_bootstrap_to_phase() /usr/share/php/drush/drush.php:81
2.1957 37568016 5. drush_bootstrap() /usr/share/php/drush/includes/bootstrap.inc:308
2.1991 37569712 6. _drush_bootstrap_drupal_login() /usr/share/php/drush/includes/bootstrap.inc:185
2.1996 37569944 7. drush_drupal_login() /usr/share/php/drush/includes/bootstrap.inc:979
2.1996 37570128 8. user_load() /usr/share/php/drush/includes/drupal.inc:138
2.1996 37570648 9. user_load_multiple() /home/mysite/www/modules/user/user.module:366
2.1996 37570728 10. entity_load() /home/mysite/www/modules/user/user.module:291
2.1996 37570792 11. entity_get_controller() /home/mysite/www/includes/common.inc:7849
2.1997 37571320 12. entity_get_info() /home/mysite/www/includes/common.inc:7883
2.2434 37671552 13. drupal_alter() /home/mysite/www/includes/common.inc:7719
2.2652 37680800 14. xmlsitemap_menu_entity_info_alter() /home/mysite/www/includes/module.inc:1101
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function menu_get_menus() in
/home/mysite/www/sites/all/modules/xmlsitemap/xmlsitemap_menu/xmlsitemap_menu.module, line 37
[error]
Drush was not able to start (bootstrap) Drupal.
Hint: This error can only occur once the database connection has already been successfully
initiated, therefore this error generally points to a site configuration issue, and not a
problem connecting to the database.
Drush was attempting to connect to:
Drupal version : 7.34
Site URI : http://default
Database driver : mysql
Database username : phpmyadmin
Database name : mysite
Database : Connected
Default theme : open_framework
Administration theme : bartik
PHP executable : /usr/bin/php
PHP configuration : /etc/php5/cli/php.ini
PHP OS : Linux
Drush version : 6.2.0
Drush configuration :
Drush alias files :
Drupal root : /home/mysite/www
Site path : sites/default
File directory path : sites/default/files
Temporary file directory path : /tmp
After lots of search, and no more clues, i decided to creat a new folder on my server and start again from zero. I re installed drupal, with a new database, like usual...Fine ! i changed my settings to connect my new site to my old database...And the same issue is back ! So i guess this might come from something wrong in my database. I turned to 0, the phpmailer in the system table: both bootstrap and module status...But still nothing works