404 after Migration Topic is solved

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
candasys
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Mar 26, 2019 8:39 am

404 after Migration

Post by candasys » Tue Mar 26, 2019 8:52 am

Joomla 3.8 php 7.1

We have just mrigrated a site to our server.
Configuration file is 100% up to date and correct.
Database is fine and working
But we get "404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
on every page front and admin.

Joomla is new to us so any advise is welcome.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17370
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: 404 after Migration

Post by toivo » Tue Mar 26, 2019 9:04 am

Obviously something is not quite correct if your site displays 404 Not Found errors. How was the migration done?

Please post the results of the Forum Post Assistant (FPA) by following the instructions from viewtopic.php?f=806&t=969442.
Toivo Talikka, Global Moderator

candasys
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Mar 26, 2019 8:39 am

Re: 404 after Migration

Post by candasys » Tue Mar 26, 2019 9:35 am

All files from the old server were FTP up to new server a copy of the database was recreated on the new server from a zipped copy. All user names password etc were duplicated on the new server. So it is just a mirror image of the original. Hence why I don't understand the 404's

Many thanks

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17370
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: 404 after Migration

Post by toivo » Tue Mar 26, 2019 9:43 am

The following tutorial may give some clues: https://docs.joomla.org/Copying_a_Joomla_website

If it doesn't, please post the FPA results.
Toivo Talikka, Global Moderator

candasys
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Mar 26, 2019 8:39 am

Re: 404 after Migration

Post by candasys » Tue Mar 26, 2019 10:45 am

That was the documentation we used to migrate the site.

would post if I know what they were (FPA)?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17370
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: 404 after Migration

Post by toivo » Tue Mar 26, 2019 11:02 am

toivo wrote:Please post the results of the Forum Post Assistant (FPA) by following the instructions from viewtopic.php?f=806&t=969442.
Toivo Talikka, Global Moderator

candasys
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Mar 26, 2019 8:39 am

Re: 404 after Migration

Post by candasys » Wed Mar 27, 2019 2:16 pm

FPA results
Forum Post Assistant (v1.4.8 (koine)) : 27th March 2019 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.8.6-Stable (Amani) 13-March-2018
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Writable (644) | Owner: --protected-- . (uid: 1/gid: 1) | Group: --protected-- (gid: 1) | Valid For: 3.8
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: No (ReWrite Enabled but no .htaccess?) | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 2 | Error Reporting: maximun | Site Debug: true | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.8.6: Yes | Database Supports J! 3.8.6: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 3.10.0-514.6.1.el7.x86_64 | Technology: x86_64 | Web Server: Apache/2 | Encoding: gzip, deflate | Doc Root: --protected-- | System TMP Writable: Yes | Free Disk Space : 1569.60 GiB |

PHP Configuration :: Version: 7.1.23 | PHP API: fpm-fcgi | Session Path Writable: Yes | Display Errors: | Error Reporting: 22527 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Open Base: /home/baldwinsit/:/tmp/:/var/tmp/:/usr/local/php71/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/php70/lib/:/usr/local/php71/lib/:/usr/local/php72/lib/:/usr/local/lib/php/ | Uploads: 1 | Max. Upload Size: 64M | Max. POST Size: 64M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

Database Configuration :: Version: 5.5.5-10.0.37-MariaDB (Client:mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $) | Host: --protected-- (--protected--) | default Collation: latin1_swedish_ci (default Character Set: latin1) | Database Size: 18.68 MiB | #of Tables:  117
Detailed Environment :: wrote:PHP Extensions :: Core (7.1.23) | date (7.1.23) | libxml (7.1.23) | openssl (7.1.23) | pcre (7.1.23) | sqlite3 (7.1.23) | zlib (7.1.23) | bcmath (7.1.23) | calendar (7.1.23) | ctype (7.1.23) | curl (7.1.23) | dom (20031129) | fileinfo (1.0.5) | filter (7.1.23) | ftp (7.1.23) | gd (7.1.23) | gettext (7.1.23) | hash (1.0) | iconv (7.1.23) | intl (1.1.0) | json (1.5.0) | mbstring (7.1.23) | mcrypt (7.1.23) | SPL (7.1.23) | session (7.1.23) | standard (7.1.23) | PDO (7.1.23) | mysqlnd (mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $) | pdo_sqlite (7.1.23) | Phar (2.0.2) | posix (7.1.23) | Reflection (7.1.23) | pdo_mysql (7.1.23) | SimpleXML (7.1.23) | soap (7.1.23) | sockets (7.1.23) | mysqli (7.1.23) | tokenizer (7.1.23) | xml (7.1.23) | xmlreader (7.1.23) | xmlwriter (7.1.23) | xsl (7.1.23) | zip (1.13.5) | cgi-fcgi () | Zend Engine (3.1.0) |
Potential Missing Extensions ::

Switch User Environment (Experimental) :: PHP CGI: No | Server SU: No | PHP SU: No | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (---) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (755) |

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 7793354 | Threads: 1 | Questions: 2103152392 | Slow queries: 11241 | Opens: 782479 | Flush tables: 1 | Open tables: 400 | Queries per second avg: 269.864 |
Extensions Discovered :: wrote:Components :: SITE ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
3rd Party::

Components :: ADMIN ::
Core :: com_admin (3.0.0) 1 | com_ajax (3.2.0) 1 | com_associations (3.7.0) 1 | com_banners (3.0.0) 1 | com_cache (3.0.0) 1 | com_categories (3.0.0) 1 | com_checkin (3.0.0) 1 | com_config (3.0.0) 1 | com_content (3.0.0) 1 | com_contenthistory (3.2.0) 1 | com_cpanel (3.0.0) 1 | com_fields (3.7.0) 1 | com_finder (3.0.0) 1 | com_installer (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_languages (3.0.0) 1 | com_login (3.0.0) 1 | com_media (3.0.0) 1 | com_menus (3.0.0) 1 | com_messages (3.0.0) 1 | com_modules (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_plugins (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_redirect (3.0.0) 1 | com_search (3.0.0) 1 | com_tags (3.1.0) 1 | com_templates (3.0.0) 1 | com_users (3.0.0) 1 |
3rd Party:: Admintools (5.0.2) 1 | com_dbreplacer (6.1.0) 1 | com_regularlabsmanager (7.1.7) 1 | Securitycheck Pro (3.0.1) 1 | com_widgetkit (2.9.16) 1 |

Modules :: SITE ::
Core :: mod_articles_archive (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_login (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_search (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_tags_similar (3.1.0) 1 | mod_users_latest (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_wrapper (3.0.0) 1 |
3rd Party:: Perfect AJAX Popup Contact Form (3.4.19) 1 | Widgetkit (2.9.16) 1 | Builder (1.11.6) 1 |

Modules :: ADMIN ::
Core :: mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_login (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_sampledata (3.8.0) 0 | mod_stats_admin (3.0.0) 1 | mod_status (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_title (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_version (3.0.0) 1 |
3rd Party:: mod_addtomenu (6.1.1) 1 | Add to Menu Component XML - com_cat (6.1.1) ? | Add to Menu Component XML - com_cat (6.1.1) ? | Add to Menu Component XML - com_cat (6.1.1) ? | Add to Menu Component XML - com_cat (6.1.1) ? | Add to Menu Component XML - com_cat (6.1.1) ? | Add to Menu Component XML - com_cat (6.1.1) ? | Add to Menu Component XML - com_cat (6.1.1) ? | mod_cachecleaner (6.2.0) 1 | Securitycheck Pro Info Module (3.0.1) 1 |

Libraries :: SITE ::
Core ::
3rd Party:: FOF30 (3.1.2) 1 | Regular Labs Library (18.2.13418) 1 |

Plugins :: SITE ::
Core :: plg_authentication_cookie (3.0.0) 1 | plg_authentication_gmail (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_captcha_recaptcha (3.4.0) 0 | plg_content_emailcloak (3.0.0) 0 | plg_content_fields (3.7.0) 1 | plg_content_finder (3.0.0) 0 | plg_content_joomla (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_vote (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_tags (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_languagefilter (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_p3p (3.0.0) 0 | plg_system_redirect (3.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_stats (3.5.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_user_contactcreator (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 0 |
3rd Party:: Content - Widgetkit (2.9.16) 1 | plg_editors_codemirror (5.34.0) 1 | plg_editors_tinymce (4.5.8) 1 | plg_editors-xtd_betterpreview (6.1.0) 1 | Editors-XTD - Widgetkit (2.9.16) 1 | Installer - Securitycheck Pro (3.0.1) 1 | Installer - YOOtheme (1.0.2) 0 | System - Admin Tools (5.0.2) 1 | plg_system_betterpreview (6.1.0) 1 | plg_system_cachecleaner (6.2.0) 1 | plg_system_emailprotector (4.2.0) 1 | plg_system_regularlabs (18.2.13418) 1 | System - Securitycheck Pro (3.0.1) 1 | System - Securitycheck Pro Cron (3.0.1) 1 | System - Securitycheck Pro Update D (1.0.2) ? | System - Securitycheck Spam Protect (1.0.3) ? | System - url Inspector (3.0.1) 0 | System - Widgetkit (2.9.16) 1 | System - Widgetkit K2 (2.9.16) 0 | System - Widgetkit ZOO (2.9.16) 0 | System - YOOtheme Framework (1.11.6) 1 |
Templates Discovered :: wrote:Templates :: SITE :: beez3 (3.1.0) 1 | protostar (1.0) 1 | yootheme (1.11.6) 1 |
Templates :: ADMIN :: hathor (3.0.0) 1 | isis (1.0) 1 |
Last edited by toivo on Wed Mar 27, 2019 2:59 pm, edited 1 time in total.
Reason: mod note: disabled smilies in post Options for readability

candasys
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Mar 26, 2019 8:39 am

Re: 404 after Migration

Post by candasys » Wed Mar 27, 2019 2:20 pm

Sorry should have noted that the only way we got the FPA to run was to drop the www and use just http://
However this does not seem the case for the site. If you drop the www it just rewrites to www (this is with the .htacccess file taken out

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9652
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: 404 after Migration

Post by AMurray » Wed Mar 27, 2019 10:05 pm

I don't see anything out of the ordinary except your site is 12 months behind in updates (3.8.6 was released in March 2018); the current version is 3.9.4.

I'd update first, then try the transfer again. I hope you did a backup (besides the files you used to transfer the site initially). I would also advise to use the Akeeba Backup / Kickstart method of transferring the site. Far less painful.
Joomla Docs wrote:Copying a website (common method)
Akeeba

Akeeba Backup produces a .jpa file
The .jpa file contains all the folders/files and database files.
The .jpa file also contains an installer
Kickstart.php (from Akeeba) unpacks the .jpa file
You then run the installer and install your site like a Joomla install
The installer changes the configuration for restoring to a different location and prompts for the new database details.

After you create the Database for your Joomla download and install Akeeba, it can be download from Joomla extension directory. There is a link to full instructions there as well.
The WWW vs non-WWW is not really a joomla issue, but a server issue. Check the way your server behaves in cPanel, or whatever you use as your hosting administration panel at your hosting provider.

Does the site work (www or non-www) with the Joomla-default htaccess file? Download joomla, extract the file htaccess.txt; rename it .htaccess and overwrite the current file; make a copy of the current one - name it "htaccess.bak" - then you can restore it if required.
Regards - A Murray
General Support Moderator

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: 404 after Migration

Post by leolam » Sat Mar 30, 2019 7:10 am

Everything is outdated including the server configuration. However do get rid of your Open Base directive and do not use it. It is totally useless and can cause this issue.

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

sccm-guy
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Oct 07, 2017 7:13 pm

Re: 404 after Migration

Post by sccm-guy » Sat Apr 06, 2019 2:30 pm

Were you able to fix the 404 error. How was the migration? I mean did you tested if migration was successful or are you having the problem during your migration?
Thanks
Michelle

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17370
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: 404 after Migration

Post by toivo » Sat Apr 06, 2019 3:56 pm

An old version of the Add to Menu module appears multiple times in the FPA.

You will get information from possible PHP error messages after the incorrect value of Joomla error reporting is fixed - it should be 'maximum' instead of 'maximun'.
Toivo Talikka, Global Moderator

candasys
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Mar 26, 2019 8:39 am

Re: 404 after Migration

Post by candasys » Tue Apr 16, 2019 2:22 pm

Solved, it turned out to be any error with the SSL. Once corrected the site bust into live.


Locked

Return to “Installation Joomla! 3.x”