How to set megamenu items

Evening all, ok so I am sure I have missed something simple, but after reading the megamenu details I tried to make a second drop down menu on my site xmaslunch.com I wanted it to look exactly like the Wine & Spirits dropdown. I called it Test. For some reason the subcategories don’t appear in a list under the headings Test Again and Test they are instead going off to the side. Can anyone point me in the right direction as to which setting i have stuffed up.
 
Many thanks Jim

11 answers

Profile photo of Ziven Staff 100280.00 $tone September 29, 2021
Public

Hi Jim,

Evening all, ok so I am sure I have missed something simple, but after reading the megamenu details I tried to make a second drop down menu on my site xmaslunch.com I wanted it to look exactly like the Wine & Spirits dropdown. I called it Test. For some reason the subcategories don’t appear in a list under the headings Test Again and Test they are instead going off to the side. Can anyone point me in the right direction as to which setting i have stuffed up.

I’ve checked and seen an issue of our theme. I will include the fix in the next release of the theme.
For a quick workaround, I helped to add the tweak code in your Admin > Ubertheme’s Extensions > Theme Helper > Configuration > UB Technology > More > Custom CSS > Custom CSS. 

To apply that fix, please help to re-compile static files at your end following these steps: 

You should back up your site first. Once done, you access your server via SSH and navigate to your Magento 2 folder, then run the following commands one by one:
Step 1: php bin/magento maintenance:enable
Step 2: rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/frontend/Ubertheme/*
Step 3: php bin/magento setup:static-content:deploy -f (Make sure you are using developer (or default) mode)
Step 4: php bin/magento cache:flush
step 5: php bin/magento maintenance:disable
Step 6: clear your browser cache

Once done, please let me know how it goes then.
Best Regards,
Ziven.
 

#1
Profile photo of James Weston 2860.00 $tone September 29, 2021
Public

Thanks Ziven, glad it wasn’t something i had done wrong 🙂
Ok so followed your instructions and now I get this error message and cannot login the back end either:

An error has happened during application run. See exception log for details.
Could not write error message to log. Please use developer mode to see the message.
#2
Profile photo of Mall Staff 184060.00 $tone October 1, 2021
Public

Hi there,

An error has happened during application run. See exception log for details.
Could not write error message to log. Please use developer mode to see the message.

Do I need to try an install the backup or is there something else I need to do?

It seems that you got an issue with the permission of folders/files in your M2 root folder.
Let’s try to run the following command to change the permission of folder and files in your M2 root folder:
+ Open SSH terminal and go to the M2 root folder and run the following command:

find . -type d -exec chmod 775 {} +;
find . -type f -exec chmod 664 {} +;

If after that, the issue still persists, let’s provide me information about your instance:
+ Admin credentials and URL to the backend
+ SSH credentials and let me know the path to the M2 folder
I will help to check further and get back to you then.
Regards,
Mall.
 

#4
Profile photo of James Weston 2860.00 $tone October 1, 2021
Public

Thanks this is what it says now:

<br />
<b>Warning</b>:  file_put_contents(/home/jdsoyqmy/public_html/var/cache//mage-tags/mage---409_CONFIG): failed to open stream: Permission denied in <b>/home/jdsoyqmy/public_html/vendor/colinmollenhour/cache-backend-file/File.php</b> on line <b>691</b><br />
<br />
<b>Warning</b>:  file_put_contents(/home/jdsoyqmy/public_html/var/cache//mage-tags/mage---409_MAGE): failed to open stream: Permission denied in <b>/home/jdsoyqmy/public_html/vendor/colinmollenhour/cache-backend-file/File.php</b> on line <b>691</b><br />
UnexpectedValueException: The stream or file "/home/jdsoyqmy/public_html//var/log/system.log" could not be opened in append mode: failed to open stream: Permission denied in /home/jdsoyqmy/public_html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:110
Stack trace:
#0 /home/jdsoyqmy/public_html/vendor/magento/framework/Logger/Handler/Base.php(88): Monolog\Handler\StreamHandler->write(Array)
#1 /home/jdsoyqmy/public_html/vendor/magento/framework/Logger/Handler/System.php(62): Magento\Framework\Logger\Handler\Base->write(Array)
#2 /home/jdsoyqmy/public_html/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Magento\Framework\Logger\Handler\System->write(Array)
#3 /home/jdsoyqmy/public_html/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array)
#4 /home/jdsoyqmy/public_html/vendor/magento/framework/Logger/Monolog.php(48): Monolog\Logger->addRecord(400, 'Warning: file_p...', Array)
#5 /home/jdsoyqmy/public_html/vendor/monolog/monolog/src/Monolog/Logger.php(712): Magento\Framework\Logger\Monolog->addRecord(400, 'Warning: file_p...', Array)
#6 /home/jdsoyqmy/public_html/vendor/magento/framework/Logger/LoggerProxy.php(126): Monolog\Logger->error('Warning: file_p...', Array)
#7 /home/jdsoyqmy/public_html/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\Logger\LoggerProxy->error('Warning: file_p...')
#8 /home/jdsoyqmy/public_html/pub/index.php(29): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#9 {main}

#5
Profile photo of Mall Staff 184060.00 $tone October 4, 2021
Public

Hi Jim,

<br />
<b>Warning</b>: file_put_contents(/home/jdsoyqmy/public_html/var/cache//mage-tags/mage—409_CONFIG): failed to open stream: Permission denied in <b>/home/jdsoyqmy/public_html/vendor/colinmollenhour/cache-backend-file/File.php</b> on line <b>691</b><br />
<br />

I checked the VHM you shared above, but, I didn’t see the M2 root folder of the M2 instance you mentioned (https://www.xmaslunch.com/). 

Then, I checked again the VHM that you shared in reply #90 in this post and saw the root folder of the site you mentioned.
 
After that, I changed the permission of the folder/files in the M2 root folder by running the following command:

sudo chown -R jdsoyqmy:jdsoyqmy /home/jdsoyqmy/public_html;

And the issue has been solved now.

Regards,
Mall.
 
 
 

#7
Profile photo of James Weston 2860.00 $tone October 4, 2021
Public

thanks Mall. I have double checked and the original problem that your colleague asked me to add the code to fix is still not fixed 🙁
If you mouse over Test or Food & Drink you will see there is still the original issue with the menu alignment not working the same as the Wine & Spirits Menu.
Did you run the code again that I was originally asked to run?
Many thanks Jim

#8
Profile photo of Ziven Staff 100280.00 $tone October 4, 2021
Public

Hi Jim,

Evening all, ok so I am sure I have missed something simple, but after reading the megamenu details I tried to make a second drop down menu on my site xmaslunch.com I wanted it to look exactly like the Wine & Spirits dropdown. I called it Test. For some reason the subcategories don’t appear in a list under the headings Test Again and Test they are instead going off to the side. Can anyone point me in the right direction as to which setting i have stuffed up.

I’ve just updated the code in the file:  public_html/app/design/frontend/Ubertheme/atoms/Ubertheme_UbMegaMenu/web/css/source/_extend.less and re-compile static files.
 
The menu has shown like this screenshot: https://prnt.sc/1updnej. Please check again. 
 
Best Regards,
ziven.
 

#9
Profile photo of ubdev Staff 98150.00 $tone October 4, 2021
Public

Hi Jim, 
Please continue the set-up at your end. If you have any additional questions, please get back to us here.
Regards,
Ubertheme team

#11

Please login or Register to Submit Answer

Written By

Comments