We have custom fields under Joomla 3.x for our contact form.
Since we update Joomla to 4.x, we do not have any control on those fields.
On web videos, we can see a field menu under the contact one, we do not have this kind of display ?
The problem in on our contact form where those customs fields are displayed with the text 'COM_CONTACT_OPTIONAL' just after the title of the field - you can see them on the contact form of our site 'o2c-sc.com'
We want to access our customs fields issued from Joomla 3.x to understand and change the display of the additional text 'COM_CONTACT_OPTIONAL'
No menu to access customs field in the contact menu
Joomla 4.0 to 4.2.6 - no evolution from version to version 4.x - french language
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
As you can see, the option is already Ok but we do not have any access to the dedicated menu
can you check this query
SELECT * FROM `#__menu`
WHERE link in ('index.php?option=com_fields&context=com_contact.contact',
'index.php?option=com_fields&view=groups&context=com_contact.contact');
Please check if com_fields is enabled, in system manage extensions.
Hello, I do not understand where do you find "com_fields" in system manage extensions, see screen copy hereafter :
Hello Brian,
you ever ask me this question (it was the first one of this issue) and the answer is Yes as you can see in my first screenshot at the beginning of this comment list(but in French "Intégration des champs" equal "Oui").
I think that 'alikon' ask me a question after you about the content of the table '__menu' of our database and when I have done the SQL request on the database, the result was empty. I think it is not the right think even if we only upgrade Joomla automatically from 3.7.0 to 4.0.0 and now to 4.2.6 ???
Do you have any idea ?
Sorry I forgot I aleready asked you that question. Its the only thing I can think of. Sorry
Thank you for your help. Perhaps this issue is a real one ! not so simple ...
After all, the question is, why the entries are missing in the database, as @alikon asked.
Is it possible that you have not only this one table prefix in your database but different databases?
Could you check your table #__menus
SELECT * FROM
#__menu WHERE link like "%field%"
?
Hello #chmst,
I have checked the database : all the tables begin by 'mod149_' and so the result of the request is still empty
May someone help me ? It seems to be a real problem with Joomla 4 as nobody know any solution : 2 of us ask me for any filed menu into Joomla database - why the result is still empty ? How can i do to correct it ?
I have still no solution.
Is it possible, that com_contact was deinstalled and then installed again?
I have checked the database : all the tables begin by 'mod149_' and so the result of the request is still empty
Just to go sure; you tried:
SELECT * FROM mod149_menu WHERE link like "%field%"
?
Yes, the SQL request SELECT * FROM mod149_menu WHERE link like "%field%" have an empty result
The upgrade process from JOOMLA 3.X to 4.X generate something wrong concerning the database
I do not know how to installed again only this part of JOOMLA without affect all the website !
Labels |
Added:
bug
|
Same was mentioned today on facebook - weird
@OlivierCARRE-O2C is this still an open issue or could you find what caused the issue?
Labels |
Added:
Information Required
|
Hello Christiane,
You speak about a facebook article - do you have any link to this article, I do not find it with google ?
It still an issue on our website today.
Best regards, Olivier
Hi,
I just experienced the same problem after an upgrade from J3.10.11.
There for some time (=years) com_contact was deactivated. But before the update to J4 we activated it again.
Can you reach the view with the direct link?
administrator/index.php?option=com_fields&view=fields&context=com_contact.article
It works for me, just the menu-items are missing.
sorry, link should be
administrator/index.php?option=com_fields&context=com_contact.contact
(not com_contact.article)
@OlivierCARRE-O2C - this was another case, Not the same as yours.
https://www.facebook.com/groups/joomlanospam/posts/10159058264070997/?comment_id=10159058466985997¬if_id=1686922994202777¬if_t=feedback_reaction_generic&ref=notif
I will try. I have to remove the people's data first, but I have a backup I can use locally for this.
I just experienced the same issue for the first time. Migration from 3.10.11 to 4.3.3.
All com_contact files are there, it is just missing the menu items for fields and groups views.
My temporary fix has been to compare the 'menus' table with another 'clean' instance of Joomla 4 (a site not gone through migration).
Then injected the missing SQL
INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`, `publish_up`, `publish_down`) VALUES
('main', 'mod_menu_fields', 'Contact Custom Fields', '', 'contact/Custom Fields', 'index.php?option=com_fields&context=com_contact.contact', 'component', 1, 7, 2, 29, NULL, NULL, 0, 0, 'class:messages-add', 0, '', 16, 17, 0, '*', 1, NULL, NULL),
('main', 'mod_menu_fields_group', 'Contact Custom Fields Group', '', 'contact/Custom Fields Group', 'index.php?option=com_fields&view=groups&context=com_contact.contact', 'component', 1, 7, 2, 29, NULL, NULL, 0, 0, 'class:messages-add', 0, '', 18, 19, 0, '*', 1, NULL, NULL);
Of course, this totally ignores the order parameters (columns lft and rgt have the wrong values) and the result is that I get menu items in the wrong order under 'Contacts'. But at least, I have the menu items in. I have not yet looked at the code, just reporting that this is more common than we would think.
Also please check the content of the update log
Yes, I have the original site before migration Brian @brianteeman (actually testing my own site's migration before the big jump). I would have to purge sensitive data first though...
The update log file shows all queries that were run, there is no indication of any of the queries to have failed.
There is no 'insert' made to the menu table according to the log file when it comes to com_contact.
Looking through all update files, I don't see any query that would inject the missing views (those views being non-existent in Joomla 3, one can only access the fields and groups pages from the Contacts or Categories page). The menu items are only inserted in the menu table on a clean install.
I am probably missing something...
Really hard to help people on this if they dont provide the requested data
Hello,
I think i can find the copy of our website in its old configuration on 28 december 2021 (32 bits, PHP 7.3.3, Joomla 3.10.4) before migration to 64 bits, PHP 8.1 and Joomla 4.0.5 (I come back to PHP 8.0 later because of some deprecated errors)
Do you think if i give you this original configuration, you can migrate it to Joomla 4 and discover why our actual website has this problem ?
If Yes, tell we if WeTransfer is Ok for you ? I think i have your email from a previous problem
Best regards
If I have the site then I can see if I can find the cause of the problem.
Our actual website is at the beginning of this issue : www.o2c-sc.com
I can give you a temporary admin password as we have ever done for a previous problem
I mean if i can see the site before upgrade, try the upgrade myself and log whjat happens during it
The original website does not exist any more except a ftp copy than i can zip and sent to you
as long as it includes the database backup as well then that would be great
Ok, I search for this ftp copy
Ok, I have find it. I have done a zip - the website is complete but i do not know where is the database !
Without the database I can't do anything, sorry
Shit. The database is not included in the ftp copy and i have no more copy of it ... and the problem is linked to the database ...
I have clean the database at the end of 2022 for a problem of capacity => all the old datas are off
I have been spending some more time trying to figure out what is wrong here.
It turns out all finder sub-menus are also missing after the migration from Joomla 3 to 4 (not only the contact custom field sub-menus).
I went to administration/com_admin where the scripts for updating contacts and finder menu items are located (in script.php).
After detailed verification between sites that went through the migration fine and my (failed) migration, I can conclude that the postflight from script.php either has not been called or has returned before doing anything.
When postflight is not run:
I will go through the migration again and backup the website just before moving to 4, so I can have a starting point I can share if needed.
@obuisard thats exactly what I expect
the questions and issue to resolve is
Did the migration indicate there was a failure or not? Often errors are ignored by the user as they think it all worked.
If there was no indication can we fix the code so an error is reported?
If this part of the postflight didnt run was there anything else that didnt?
Can we find out why the migration failed?
Hello Brian,
During our migration, we do not have any problem indication nor error code.
After the migration, during exploitation of our website, we received a deprecated error from PHP so we go back to PHP 7.0 (migration with PHP 7.1) which solve this kind of error.
Can we launch manually the PHP script found by @obuisard in administration/com_admin to solve the problem in parallel of your code analysis ?
Best regards
OK, I will try and explain what I went through.
I have re-tested the migration of the site where I had the problem with missing menus.
I got the site to the point where it needed to migrate to Joomla 4. Made a backup and started the migration.
Ultimately, it FAILED at the end. One of the extensions I am using generated an error.
The migration seemed to have gone through, the log files are 'clean', no error whatsoever (administrator/logs/joomla_update.php
).
But because of that extension 'failing', the migration actually did not go through the last few steps (post-install script of the migration). The failure actually happens when the update controller redirects the URL to the Joomla update page.
The last 4 steps of the migration to Joomla 4 did not run:
I did do another test run, disabling the extension that was generating the error.
The migration went perfectly fine.
I think the upmost attention must be done when migrating to Joomla 4.
Especially: disable any third-party extension that could be problematic when landing into the Joomla 4 dashboard.
On my list of things to do before selecting the button for the migration:
Test the migration until you are certain it went through fine (hint: if Smart Search has no sub-menu, it did not go all the way through).
Can we launch manually the PHP script found by @obuisard in administration/com_admin to solve the problem in parallel of your code analysis ?
@OlivierCARRE-O2C I have created a patch that runs the last 4 steps of the migration I identified for not going through.
However, I am not certain I should make this patch available. That could help sites that are now under Joomla 4 and live, but I would rather people test their migrations before relying on such a patch...
AND I cannot be 100% sure that the update went through all steps up to the post-install script before it stopped...
Hello Olivier,
Our website is under Joomla 4 since 2 years and a half.
Everything works and we have no error except this problem so I am ready to test your solution
The migration seemed to have gone through, the log files are 'clean', no error whatsoever (administrator/logs/joomla_update.php).
Exactly as I thought.
I bet in the update log you did not have the final line
Update to version 4.3.3 is complete.
What we need to do, and I have said for a long time, is to have that line in the UI and not the logs AND if it is not present in the logs then we MUST output an error message in the UI which we don't.
Almost everyday I see people (even experienced people like yourselves) saying that the update was completed successfuly but .... insert something that they had to fix here
Sure we have not checked for the log file after migration, we have just looked for message on the screen.
If I look for the last update log (to 4.3.3), it is Ok ...
I bet in the update log you did not have the final line
Update to version 4.3.3 is complete.
Brian @brianteeman the logs (when failing) show:
End of SQL updates.
Deleting removed files and folders.
And are missing
Cleaning up after installation.
Update to version 4.3.3 is complete.
However, the install goes all the way to the 'complete' screen, which shows Update to version 4.3.3 is complete.
despite the fact it did not go all the way through.
So yes, the Joomla update is missing a warning... Maybe, at least, have a session variable that would be set to 'true' only after the last step of the migration has been completed and when redirected to the 'complete' view, test that value to show an appropriate message?
Not everyone checks logs for sure and when I did check mine, I did not see any error at the time. It was just missing a couple lines I did not pay attention to.
So yes, the Joomla update is missing a warning... Maybe, at least, have a session variable that would be set to 'true' only after the last step of the migration has been completed and when redirected to the 'complete' view, test that value to show an appropriate message?
Yes thats exactly what I suggested.
Not everyone checks logs for sure and when I did check mine, I did not see any error at the time. It was just missing a couple lines I did not pay attention to.
Even checking the logs wouldnt have helped you if you didnt already know what the last line should be
Hello Olivier, Our website is under Joomla 4 since 2 years and a half. Everything works and we have no error except this problem so I am ready to test your solution
I don't see you on Mattermost @OlivierCARRE-O2C. Please contact me personally (check my GitHub profile for the email address) so I can send you the patch. Even though the patch is 'harmless' (it launches the post-install script), I strongly suggest a backup be done before applying it.
@brianteeman , Olivier BUISARD send me his script but it does work because he create it to correct a website which is just migrate from Joomla 3.x to Joomla 4.3.3 but it is not our case.
So thank you to add some explicit message to close correctly a migration for future users and if you have a solution to finish the migration on our website, I will be interested. Best regards, Olivier
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-08-30 06:31:41 |
Closed_By | ⇒ | brianteeman |
I am going to close this. The problem has been identified (update not completing) and a pull request to increase the visibiity of an update that does not complete has been created.
Check the options