Simulation of migration from Joomla 3.10.11 to 4 locally Topic is solved

Need help upgrading your Joomla! website or converting to Joomla! 4.x?

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.
Post Reply
jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Sun Dec 04, 2022 11:05 am

This may seem like a childishly simple problem, but I haven't been able to find the solution to my problem for several days.
Before migrating my site from Joomla 3.10.11 to Joomla 4, I want to test the whole route locally, on MAMP 6.
I backed up my site and uploaded it to MAMP. (Akeeba + kickstart)
The administration part works without problem, but when I want to access the site itself, the URL address is that of my live site + the local address.

(https://www.travel-video.info/http://mi ... /index.php).

After many tries, I deleted .htaccess (at least, I made it htaccess.txt), because there were a lot of redirects in this file. But that didn't change anything...
Index.html links to the standard presentation page of the site, on the local server. On the other hand, index.php sends me back to the live site, + the address of the local site.
I checked the __DIR__ variable which gives me the right folder...
I can't see where the problem could come from.
I disabled a few plugins, like for example sh404SEF, thinking it might cause redirects, but that didn't help either.
Does anyone have a suggestion?

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4956
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by gws » Sun Dec 04, 2022 11:25 am

Do you have anything in the live site variable in global config? If so empty it.

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Sun Dec 04, 2022 11:30 am

This is the first thing I checked. No this variable (in configuration.php I assume) is : ''

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Sun Dec 04, 2022 12:17 pm

May be an FPA report can help...
Forum Post Assistant (v1.6.5) : 4-Dec-2022 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.10.11-Stable (Daraja) 14-August-2022
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only (444) |
Configuration Options :: Offline: false | SEF: false | SEF Suffix: true | SEF ReWrite: true | .htaccess/web.config: No (ReWrite Enabled but no .htaccess?) | GZip: true | Cache: false | CacheTime: 60 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: none | Site Debug: false | Language Debug: false | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.10.11: Yes | Database Supports J! 3.10.11: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Darwin | OS Version: 22.1.0 | Technology: x86_64 | Web Server: Apache/2.4.46 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/8.0.8 OpenSSL/1.0.2u mod_wsgi/3.5 Python/2.7.13 | Encoding: gzip, deflate | System TMP Writable: Yes | Free Disk Space : 231.13 GiB |

PHP Configuration :: Version: 8.0.8 | PHP API: apache2handler | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: | Log Errors To: /Applications/MAMP/logs/php_error.log | Last Known Error: 04th December 2022 11:37:39. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 32M | Max. POST Size: 8M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

Database Configuration :: Version: 5.7.34 (Client:mysqlnd 8.0.8) | Database Size: 225.71 MiB | #of Tables with config prefix:  229 | #of other Tables:  0 | User Privileges : GRANT PROXY
Detailed Environment :: wrote:PHP Extensions :: Core (8.0.8) | date (8.0.8) | libxml (8.0.8) | openssl (8.0.8) | pcre (8.0.8) | sqlite3 (8.0.8) | zlib (8.0.8) | bcmath (8.0.8) | bz2 (8.0.8) | calendar (8.0.8) | ctype (8.0.8) | curl (8.0.8) | dom (20031129) | hash (8.0.8) | fileinfo (8.0.8) | filter (8.0.8) | ftp (8.0.8) | gd (8.0.8) | gettext (8.0.8) | SPL (8.0.8) | iconv (8.0.8) | intl (8.0.8) | json (8.0.8) | ldap (8.0.8) | mbstring (8.0.8) | session (8.0.8) | standard (8.0.8) | mysqlnd (mysqlnd 8.0.8) | PDO (8.0.8) | pdo_mysql (8.0.8) | pdo_sqlite (8.0.8) | Phar (8.0.8) | posix (8.0.8) | Reflection (8.0.8) | mysqli (8.0.8) | SimpleXML (8.0.8) | soap (8.0.8) | sockets (8.0.8) | sodium (8.0.8) | exif (8.0.8) | tokenizer (8.0.8) | xml (8.0.8) | xmlreader (8.0.8) | xmlwriter (8.0.8) | xsl (8.0.8) | zip (1.19.3) | apache2handler (8.0.8) | imap (8.0.8) | pgsql (8.0.8) | pdo_pgsql (8.0.8) | Zend Engine (4.0.8) |
Potential Missing Extensions ::

Switch User Environment :: PHP CGI: No | Server SU: No | PHP SU: No | Potential Ownership Issues: No

Apache Modules :: core | mod_so | http_core | mod_ssl | prefork | mod_access_compat | mod_actions | mod_alias | mod_allowmethods | mod_auth_basic | mod_auth_digest | mod_auth_form | mod_authn_anon | mod_authn_core | mod_authn_dbd | mod_authn_dbm | mod_authn_file | mod_authn_socache | mod_authz_core | mod_authz_dbd | mod_authz_dbm | mod_authz_groupfile | mod_authz_host | mod_authz_owner | mod_authz_user | mod_autoindex | mod_buffer | mod_cache | mod_case_filter_in | mod_case_filter | mod_cern_meta | mod_cgi | mod_cgid | mod_charset_lite | mod_dav | mod_dbd | mod_deflate | mod_dir | mod_dumpio | mod_echo | mod_env | mod_expires | mod_ext_filter | mod_fastcgi | mod_file_cache | mod_filter | mod_headers | mod_include | mod_info | mod_log_config | mod_log_debug | mod_logio | mod_macro | mod_mime_magic | mod_mime | mod_negotiation | mod_ratelimit | mod_remoteip | mod_reqtimeout | mod_request | mod_rewrite | mod_sed | mod_session | mod_setenvif | mod_slotmem_shm | mod_socache_dbm | mod_socache_shmcb | mod_speling | mod_status | mod_substitute | mod_unixd | mod_userdir | mod_usertrack | mod_version | mod_vhost_alias | mod_watchdog | mod_wsgi | mod_xsendfile | mod_php | Apache/2.4.46 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/8.0.8 OpenSSL/1.0.2u mod_wsgi/3.5 Python/2.7.13 |
Potential Missing Modules ::
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | 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: 2183 | Threads: 1 | Questions: 28791 | Slow queries: 0 | Opens: 16578 | Flush tables: 1 | Open tables: 64 | Queries per second avg: 13.188 |
Extensions Discovered :: wrote:Components :: Site ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
3rd Party:: WF_AGGREGATOR_VIMEO_TITLE (2.9.32) ? | WF_AGGREGATOR_DAILYMOTION_TITLE (2.9.32) ? | WF_AGGREGATOR_VIDEO_TITLE (2.9.32) ? | WF_AGGREGATOR_AUDIO_TITLE (2.9.32) ? | WF_AGGREGATOR_[youtube]_TITLE (2.9.32) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.9.32) ? | WF_LINK_SEARCH_TITLE (2.9.32) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.9.32) ? | WF_LINKS_JOOMLALINKS_TITLE (2.9.32) ? | WF_CAPTION_TITLE (2.9.32) ? | WF_MICRODATA_TITLE (2.9.32) ? | WF_STYLESELECT_TITLE (2.9.32) ? | WF_IFRAME_TITLE (2.9.32) ? | WF_VISUALBLOCKS_TITLE (2.9.32) ? | WF_TEXTPATTERN_TITLE (2.9.32) ? | WF_DIRECTIONALITY_TITLE (2.9.32) ? | WF_FONTCOLOR_TITLE (2.9.32) ? | WF_WORDCOUNT_TITLE (2.9.32) ? | WF_LISTS_TITLE (2.9.32) ? | WF_IMGMANAGER_TITLE (2.9.32) ? | WF_LANGCODE_TITLE (2.9.32) ? | WF_SOURCE_TITLE (2.9.32) ? | WF_MEDIAMANAGER_TITLE (2.9.32) ? | WF_SEARCHREPLACE_TITLE (2.9.32) ? | WF_CONTEXTMENU_TITLE (2.9.32) ? | WF_STYLE_TITLE (2.9.32) ? | WF_TEXTCASE_TITLE (2.9.32) ? | WF_FONTSELECT_TITLE (2.9.32) ? | WF_XHTMLXTRAS_TITLE (2.9.7) ? | WF_NONBREAKING_TITLE (2.9.32) ? | WF_PRINT_TITLE (2.9.32) ? | WF_ATTRIBUTES_TITLE (2.9.32) ? | WF_BROWSER_TITLE (2.9.32) ? | WF_AUTOSAVE_TITLE (2.9.32) ? | WF_CLEANUP_TITLE (2.9.32) ? | WF_LINK_TITLE (2.9.32) ? | WF_TABLE_TITLE (2.9.32) ? | WF_FORMATSELECT_TITLE (2.9.32) ? | WF_FILEMANAGER_TITLE (2.9.32) ? | WF_CHARMAP_TITLE (2.9.32) ? | WF_HR_TITLE (2.9.32) ? | WF_TEMPLATEMANAGER_TITLE (2.9.32) ? | WF_FONTSIZESELECT_TITLE (2.9.32) ? | WF_PREVIEW_TITLE (2.9.32) ? | WF_IMGMANAGER_EXT_TITLE (2.9.32) ? | WF_ANCHOR_TITLE (2.9.32) ? | JCE - Columns (1.0.0) ? | WF_ARTICLE_TITLE (2.9.32) ? | WF_FULLSCREEN_TITLE (2.9.32) ? | WF_VISUALCHARS_TITLE (2.9.32) ? | JCE - Noneditable (1.0.0) ? | WF_REFERENCE_TITLE (2.9.32) ? | WF_SPELLCHECKER_TITLE (2.9.32) ? | WF_KITCHENSINK_TITLE (2.9.32) ? | WF_HELP_TITLE (2.9.32) ? | WF_MEDIA_TITLE (2.9.32) ? | WF_CLIPBOARD_TITLE (2.9.32) ? | WF_EMOTIONS_TITLE (2.9.32) ? |

Components :: Admin ::
Core :: com_checkin (3.0.0) 1 | com_modules (3.0.0) 1 | com_redirect (3.0.0) 1 | com_admin (3.0.0) 1 | com_cpanel (3.0.0) 1 | com_config (3.0.0) 1 | com_weblinks (3.9.0) 1 | com_cache (3.0.0) 1 | com_actionlogs (3.9.0) 1 | com_plugins (3.0.0) 1 | com_categories (3.0.0) 1 | com_installer (3.0.0) 1 | com_media (3.0.0) 1 | com_ajax (3.2.0) 1 | com_banners (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_messages (3.0.0) 1 | com_login (3.0.0) 1 | com_content (3.0.0) 1 | com_languages (3.0.0) 1 | com_search (3.0.0) 1 | com_tags (3.1.0) 1 | com_joomlaupdate (3.10.1) 1 | com_associations (3.7.0) 1 | com_contenthistory (3.2.0) 1 | com_menus (3.0.0) 1 | com_fields (3.7.0) 1 | com_users (3.0.0) 1 | com_finder (3.0.0) 1 | com_privacy (3.9.0) 1 | com_templates (3.0.0) 1 |
3rd Party:: eXtplorer (2.1.13) 0 | com_maximenuck (9.1.28) 1 | Maximenu CK (9.1.27) 1 | Maximenu CK - Virtuemart (9.1.21) 1 | Maximenu CK - Hikashop (9.1.25) 1 | Maximenu CK - K2 (9.1.21) 1 | Maximenu CK - Adsmanager (9.1.21) 1 | Maximenu CK - Articles by date (9.1.25) 1 | Maximenu CK - Categories (9.1.25) 1 | Maximenu CK - Joomshopping (9.1.21) 1 | System - Maximenu CK (9.1.21) 1 | COM_ADVANCEDMODULES (9.5.4) 1 | COM_JCE (2.9.32) 1 | SP Page Builder (4.0.6) 1 | ENGAGE (1.0.2) 1 | com_forseo (4.2.1.1898) 1 | COM_JFBCONNECT (9.0.181) 0 | com_extrawatch (4.0.51) 0 | COM_REREPLACER (12.6.2) 1 | Akeeba (8.2.2) 1 | com_advportfoliopro (4.2.0) 1 | com_mobilemenuck (1.5.13) 1 | System - Mobile Menu CK (1.5.13) 1 | Cookies CK (3.3.3) 1 | com_cookiesck (3.3.3) 1 | COM_LSCACHE (1.5.0) 0 | sh404sef - Similar urls plugin (4.24.5.4341) ? | PLG_SH404SEFCORE_SH404SEFSOCIAL (4.24.5.4341) ? | sh404sef - Analytics plugin (4.24.5.4341) ? | sh404sef - Offline code plugin (4.23.3.4280) ? | sh404sef - Default component suppor (4.24.5.4341) ? | sh404sef - System plugin (4.24.5.4341) ? | sh404sef - System mobile template s (4.24.5.4341) ? | plg_system_shlib (0.4.0.718) 0 | plg_installer_sh404sef (4.24.5.4341) ? | sh404SEF (4.24.5.4341) 0 | COM_JCHOPTIMIZE (7.1.3) 0 | GSD (1.0) 1 | JSpeed (2.1.1) 1 | JMap (4.9.2) 1 | COM_SPEASYIMAGEGALLERY (2.0.2) 1 | JRealtimeAnalytics (3.7.2) 1 | JComments (3.0.7) ? | FlexiContact (13.04) 1 |

Modules :: Site ::
Core :: mod_tags_similar (3.1.0) 1 | mod_random_image (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_weblinks (3.9.0) 1 | mod_articles_archive (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_articles_latest (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_login (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_users_latest (3.0.0) 1 | mod_search (3.0.0) 1 | mod_articles_popular (3.0.0) 1 |
3rd Party:: SP Tab (2.0) 1 | Hot Weather (3.9.0) 1 | SP Page Builder (4.0.6) 1 | JSitemap module (4.9.2) 1 | mod_forvideo (1.4.2.135) 1 | Maximenu CK (9.1.27) 1 | JRealtime Analytics Module (3.7.2) 1 | SP Easy Image Gallery Module (2.0.2) 1 | mod_krizalys_breadcrumbs (1.2.1) 1 | AcyMailing Module (3.7.0) 0 | Rapid Contact (1.4.24) 1 | SCSocial Find Us (9.0.181) 1 | SCSocial Stream (9.0.181) 1 | Adv Portfolio Pro (4.2.0) 1 | JUX Weather Forecast (2.1.2) 1 | EB Sticky Cookie Notice (1.8) 0 | mod_breadcrumbs_adv (3.4.0) 1 | Phoca - GAE (3.0.3) 1 | SCSocial Widget (9.0.181) 1 | J51_Icons (2.0.7) 1 | SCLogin (9.0.215) 1 | DJ-EasyContact (1.7.1) 1 | JFBC Social Share (9.0.181) 1 |

Modules :: Admin ::
Core :: mod_quickicon (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_status (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_toolbar (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_menu (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_title (3.0.0) 1 | mod_version (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_login (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_submenu (3.0.0) 1 |
3rd Party:: JSpeed Panel (2.1.1) 1 | MOD_LSCACHE_NAME (1.0.0) 0 | JSitemap Quickicons (4.9.2) 1 | Reset Hits module (3.4.2) 1 |

Libraries ::
Core ::
3rd Party:: Library - compojoom (5.3.1) 1 | file_fof30 (3.6.2) ? | file_fof40 (4.1.0) ? | Regular Labs Library (22.11.18960) 1 | SourceCoast Extensions Library (9.0.181) 1 |

Templates Discovered :: wrote:Templates :: Site :: esitemplate (1.0) 1 | shaper_helixultimate (2.0.11) 1 | protostar (1.0) 1 | beez3 (3.1.0) 1 | shaper_travelia (1.4) 1 |
Templates :: Admin :: hathor (3.0.0) 1 | isis (1.0) 1 |
Last edited by imanickam on Sun Dec 04, 2022 2:03 pm, edited 1 time in total.
Reason: Disabled Smilies

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4956
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by gws » Sun Dec 04, 2022 12:36 pm

Max. Upload Size: 32M | Max. POST Size: 8M Both need to be 64 or bigger.
You have url rewrite on in config but no .htaccess,either turn off url rewrite in global or create an .htaccess file. I always disable jchoptimize until I have the site ready for going live.

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Sun Dec 04, 2022 12:52 pm

I changed the values max upload and max POST both to 64M.
Now I get a blank screen with "error"... Good thing is that it did not redirect to live site.

I disabled .hatccess, at it is a rather complex file with many redirects, and I checked: rewrite is off in my control panel.I noticed in the report that it seems to be "On", but this is not the case.
Jchoptimize is disabled since a while...

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Sun Dec 04, 2022 1:17 pm

I have changed the log settings to see more informations about the error. Here is what it says:

Error: Failed to start application: Failed to start the session because headers have already been sent by "/Users/jean-marieputz/Sites/MigrationJoomla4/index.php" at line 1.

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Sun Dec 04, 2022 1:33 pm

The error seems to come from the first line in index.php which was blank...
After suppressing the blank line, I come back again in my live site...

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Sun Dec 04, 2022 2:43 pm

I'm sorry... the problem is not solved!
The only thing which is solved is the last error Failed to start application: Failed to start the session because headers have already been sent by "/Users/jean-marieputz/Sites/MigrationJoomla4/index.php" at line 1.,

bringing back the original problem: My Mamp index.php sends me to my live site...!

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4956
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by gws » Sun Dec 04, 2022 3:53 pm

In windows there are host files that can cause redirections,I don't know the mac system,perhaps there is something similar?

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Sun Dec 04, 2022 4:14 pm

No idea if this is the case in Mac. I have tried several things in index.php and I guess something is wrong in GetApplication “site”.
But I don’t know how to see what is in that variable…
But this is in my opinion the instruction where it goes wrong.

User avatar
ceford
Joomla! Ace
Joomla! Ace
Posts: 1496
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by ceford » Mon Dec 05, 2022 11:13 am

To summarise: localhost/whatever/administrator/ works normally but localhost/whatever/ does not.

Is that from clicking the site link at the top right? I use a Mac for testing and have dozens of test sites in place of whatever. But I don't use MAMP.

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Mon Dec 05, 2022 11:17 am

Good summary... It is from clicking the top right, or just adding index.php at the end of the URL

User avatar
ceford
Joomla! Ace
Joomla! Ace
Posts: 1496
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by ceford » Mon Dec 05, 2022 11:28 am

There should not be anything in the code or the database that changes the site link. The most obvious place to look is .htaccess or a server setting somewhere in MAMP. I have MAMP but I am reluctant to start it for fear of corrupting a working system.

Which browser are you using? I doubt it makes a difference and I guess you have already tried several.

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Mon Dec 05, 2022 11:33 am

As I said before, I have disabled .htaccess (by renaming it), as it contains lots of redirects which are needed in production.
I use Firefox but tried also Chrome and Safari.
I am currently trying to debug index.php with MacGDBp (xdebug). But I don't really think it will help me, but I would like to know where the live address appears in the process...

User avatar
ceford
Joomla! Ace
Joomla! Ace
Posts: 1496
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by ceford » Mon Dec 05, 2022 11:52 am

Look in System / Redirects - anything there?

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Mon Dec 05, 2022 11:56 am

I looked therein before, but I could not find something which could cause this strange behaviour. But I'll recheck when my debug action is finished... I wanted to understand a bit what is happening, so I debug it step by step... and there are many steps.
Not sure it will help, but anyway this made me aware of the complexity of the system...

User avatar
ceford
Joomla! Ace
Joomla! Ace
Posts: 1496
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by ceford » Mon Dec 05, 2022 12:50 pm

Looking at your original link again, the one that contains

Code: Select all

https://www.travel-video.info/http://migration4host.local:8888/index.php
That looks like an error in your Apache virtual host configuration.

What is the link you use for the administrator?

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Mon Dec 05, 2022 12:53 pm


jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Mon Dec 05, 2022 2:20 pm

As I kinda expected, debugging index.php didn't help me much... :'(

User avatar
ceford
Joomla! Ace
Joomla! Ace
Posts: 1496
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by ceford » Mon Dec 05, 2022 2:40 pm

Did debugging even start? It is normal to pause on the first line of code. If that is in index.php you at least know the problem is inside Joomla. If you not halting, or executing code somewhere else, then the problem is in your configuration.

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Mon Dec 05, 2022 2:52 pm

I spent a few hours following the whole process step by step (which means instruction by instruction...) I guess I clicked probably more 5000 times to see the next instruction executed...
Very interesting to see all the things that happen just to start the website and executes in a fraction of a second...
I am pretty sure that the problem comes from some third party, but I have a quite a lot of them installed. Some of them do probably some rerouting. I have disabled a few of them to test, but probably they let traces in the database. One of them is sh404SEF (which I have completely uninstalled, as it will not survive the migration). On the live site it is disabled since a bit more than 2 months, the time for Google to discover thenew URL's. This is one of the reasons why there quit a lot of redirects in .htaccess.
Another one I disabled on localhost is Jspeed. But none of those operations helped.

And probably something in the configuration. I did not expect this, as I restored the latest backup with Akeeba and Kickstart. It is not the first time I install the website locally, but it is the first time I have this problem. That's what makes me think of some redirect left behind by a third party plugin...

User avatar
ceford
Joomla! Ace
Joomla! Ace
Posts: 1496
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by ceford » Mon Dec 05, 2022 4:04 pm

You could use phpMyAdmin to search the database for 'www.travel-video' or search the file tree. It should not be there!

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Mon Dec 05, 2022 4:22 pm

Good suggestion.
I searched for travel-video.info in the document source and found it in the cache of JSpeed. I deleted the cache, but this had no effect.
My site is based on Sp Page Builder and I noticed I am missing the So Page Builder tab…
I redownloaded it, and launching it from the admin panel. And I got exactly the same problem.
So I contacted them again, may be they can tell me where the problem is…

jmputz
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Dec 29, 2021 2:18 pm

Re: Simulation of migration from Joomla 3.10.11 to 4 locally

Post by jmputz » Tue Dec 06, 2022 8:27 am

Your last suggestion was the good one...
I found hundred of links to the live site in the database, onder 4SEO... Some extensions pretend to bring a solution to any SEO challenge... In fact the do not and they make life of webmasters bitter when it comes to make changes to the structure of their website. I had a similar experience with sh404SEF...
Thanks again for the help.


Post Reply

Return to “Migrating and Upgrading to Joomla! 4.x”