Daily Lucky Numbers:
2
21
23
29
38
46

Portal not reverting back to Portal after Login

Started by deansmar, March 26, 2026, 09:02:13 AM

Previous topic - Next topic

Chen Zhen

#15
At the moment Ultimate-Menu only requires PHP 8.0, although recently I've come across a function I want to use that is only native to PHP 8.3+.
I originally put that version requirement because previous PHP versions are now EOL and pose a security risk.



Perhaps I didn't take into account file names with accented characters as per one of your attached images.
Uninstall that mod & install the attachment which has some changes that may resolve what you reported.



Quoteif articals are enabled, and to be shown on the "Front Page Articles" and the database does not have any Articales.

then when loging In, the portals front page returns blank..!


if there is an Articel in the Database, then, when loging In, the portals front page refurns only the Artical, no blocks

Yes, when I was putting in the last fixes I came across that problem.
If there is no action argument in the URL, it defaults to the articles template which is incorrect behavior.
I'll look  into fixing that within the next week.. likely on the weekend.
 

deansmar

yes i agree with you, better to have the security risks mimimised..

sorry to say, i am still getting the same error when uploding the icons..

/Sources/Class-UltimateMenu.php (Line 670)

imagecreatetruecolor(): Argument #1 ($width) must be of type int, float given

Chen Zhen

Thanks for reporting this problem.
I should have ran a test environment without Imagick to notice these errors or at least force the use of the GD library.

Try the attachment..


deansmar

the icons now get uploaded.. and renamed.. as you can see in the attached image

but looking at them in the "manage menu" and then "Modify" you have a broken image
right click on the broken image "open image in new tab" you get a 500 Internal Server Error


looking at the database, they seem to be there..!

Chen Zhen


I can't reproduce this problem at the moment as it seems to open the image for me without any problem.
One would think that if it's writable then it's readable.
Perhaps the .htaccess is somehow causing a problem.
With the mod installed, use your FTP platform (or PC/Mac file manager if you're local testing) to delete the .htaccess file located in ./Themes/default/images/um_icons
Please let me know if this resolves the problem.

deansmar

That did the trick.. ;)

I am testing on a localhost at present.. getting things ready to go live..
Wampserver64
Apache 2.4.58
PHP 8.3.30
MariaDB 10.6.15
I can change any of theses settings..

Renamed the htacces file..
With copy and paste..
placed my icons in this location Themes/default/images/um_icons..
I see them in the list to choose from..

And hey presto.. all looks fantastic..
After all that, I didn't need the upload..  ;)

Thanks for the prompt response and replys..
I would like to contribute, but sending CAD from Europe.. :(
If there is anything I can do.. :D

Chen Zhen

The PayPal donation link is for U.S. funds and any currency conversion costs are taken out of it which means WebDev absorbs that cost.
All the server transactions come out of that account so it goes directly into helping pay for running the site.

A link is available in the forum under the "Webdevelop" header and any help in that regard is voluntary and highly appreciated.
I never ask for that though and will contribute to the SMF community in this manner so long as I can afford it.