Sheernox
New Member
Env: ClientExec 7.2.2 (ionCube), PHP 8.5.10, MariaDB 11.8.9.
Where:
Bug: With the admin folder renamed, all of these links point at
Repro:
Fix: Build these URLs from
Where:
- The
[TICKETURL]merge tag in the staff ticket templates (Support Ticket Assigned, Notify Assignee For Ticket Reply, Notify Department Lead For New Ticket, Notify Department List For New Ticket, Notify Support For New High Priority Tickets, Notify For New FeedBack). The code that fills it is encoded, so no line number. The staff link comes from the 7.0.1 change "Fixed the [TICKETURL] tag in support emails linking to the old ticket URL for staff members". plugins/reports/Revenue/Annual_Revenue.phpline 474,Revenue_And_Taxes.phpline 360,Revenue_Forecast.phpline 355 andServer_Revenue_Forecast.phpline 303 build the drill-down popup URL as the software URL plus a literaladmin/index.php.plugins/import/whmcs/PluginWhmcs.phtmlline 15,plugins/import/blesta/PluginBlesta.phtmlline 18 andplugins/import/ceformat/PluginCeformat.phtmlline 32 link the currency settings as../admin/index.php.
Bug: With the admin folder renamed, all of these links point at
/admin/index.php, which returns 404. The admin area itself and its other links follow NE_CONTROLLER_ADMIN_DIR. Only staff ticket emails were seen with the bad link; client ticket emails use the same tag for a client portal link.Repro:
- Set
NE_CONTROLLER_ADMIN_DIRto/renamedadmininconfig.phpand rename theadminfolder torenamedadmin. - Assign a ticket to a staff member. The Support Ticket Assigned email (like every staff ticket notification) links to
/admin/index.php?frmClientID=1042&fuse=support&id=272805&view=ticket&controller=ticket, which returns 404. - Run Reports > Revenue > Annual Revenue and click a month. The popup opens
/admin/index.php?noheaderfooter=1&getinvoices=1..., which returns 404.
Fix: Build these URLs from
NE_CONTROLLER_ADMIN_DIR, as the admin area does, instead of the literal admin.