Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By dromango on
I did some changes a month ago and everything worked like suppose to. I dont know how long ago the menus stopped working but I have not done anything since month ago.
dont know if its a drupal problem or server. I am currently checking my host provider.
the website is tenoakaustin.com
If you guys spot anything please let me know.
Comments
A click on each menu link
A click on each menu link does change the URL. This suggests that your menu links are doing their job - a call is made to the server and the page is rendered.
I compared the source of the Elixer and Contact pages, and they are identical.
It appears that all of your URL paths redirect to the home page.
At the bottom of your page, right above the
</body>
tag there is suspicious content.My guess is that your site was hacked. Check the .htaccess file in the document root directory. It may have code that is forcing all requests to the home page. Unless you have customized the .htaccess, file, simply replace it with the default version in the version of Drupal that your are using.
If you use FTP to update your site content, change your password and make it difficult. Also update your site's admin password and likewise make it difficult. Check the User page to see if there any user's that do not belong, and remove them.
Good luck.
I appreciate the tips. I does
I appreciate the tips. I does seem like the site is compromised. Still having the issue of the links and accessing the dashboard/admin controls....
1. I changed passwords
2. removed a script code inside html body from index.php
3. replaced code in htaccess
what else should I look at?
current htaccess code
used from this site
https://github.com/drupal/drupal/blob/7.x/.htaccess
Do you have a backup of the site?
:>(
Do you have a backup of the site?
Perhaps at this point you should replace the site with the last good backup, i.e. code, files and database.
Btw, was your .htaccess file actually compromised? It would be interesting to know what the hack looked like.
last backup was 8 months ago.
last backup was 8 months ago.... im not looking forward to fixing a backup with previous corruption for such basic layout. drupal been difficult to work with.
you can see the htcaccess code here if it has been compromised
tenoakaustin.com/htaccesscode.txt
Have you spoken with your hosting service
Have you spoken with your hosting service yet about this problem? Perhaps they can restore the site from a server image that dates prior to the occurrence of the problem, but more recent than 8 months old.
If your site is hacked, and you do not have a good backup, rebuilding the site may be your only choice.
BEFORE YOU PROCEED, TAKE A FRESH BACKUP OF THE PRODUCTION SITE (all files and database) for safe keeping.
The database in which the configuration is stored, may not have been hacked. If so, you can update Drupal core, contributed modules and themes with the latest versions, one by one, until the problem is hopefully resolved. (This assumes you have not modified core or contributed projects).
If your site has been hacked, there may be files in your server that were put there by the perpetrator. Be sure to remove any files that are not part of Drupal core or contributed projects, unless you know what they are and know they are safe.
I recommend that you try to fix the problem in a local development environment before attempting changes on your production server.
Once resolved in the local environment, you can then update the production site with the working copy.
P.S. As you are new to Drupal forums, I'll point out something you may not know. This is a community forum in which participants such as myself volunteer their time. We try our best, but may not always have their best answer. Advice offered is without warranty. Check out https://www.drupal.org/forum-posting, if you have not already done so.
=-=
This does not seem to be a menu issue (menus go to the proper paths) nor does it seem to be a hack. It seems to be an issue with the theme and the content somehow being excluded.
Are there any errors in your drupal logs related to the problem?
If you switch to a core theme does the issue persist?
Good suggestions from VM. I still suspect a hack.
Good suggestions from VM.
I still suspect a hack. The copy of the source I looked at two days ago had the HTML shown below just below the Google Analytics script tag. Today it is no longer there.
I've remove that code from
I've remove that code from the index PHP. I'll look into what's being suggested from you and VM. Thank you for your help and patience I will look into and reply back. where are the Drupal logs?
To access Drupal logs
No problem.
To access Drupal logs:
1) Enable the module Database logging (dblog)
2) Navigate to Reports > Recent log messages (/admin/reports/dblog)
I think I've found the issue
I couldn't access admin/user page or its log, it just redirects me to the main page.
I did the backup restore I had 8 months ago.
Here is what I noticed after I did the restore,
index.php in ftp manager shows
When I edited index.php, thats when things get weird.
I restored everything back to current and replaced index.php from the previous backup without issues. :)
Good news. I see the menus
Good news. I see the menus are working now.
I suspect that your version of Drupal 7 has not been updated in a while. Same may be the case for contributed modules that you use. One way to keep your site secure is to keep it current. The current version of Drupal 7 is available for download at https://www.drupal.org/project/drupal (version 7.50).
Cheers - Mike