1
Bugs / Bug: “syntax error, unexpected variable "$last_online"” on Membergroups edit page
« on: November 15, 2025, 11:35:16 pm »
Hi CreateAForum Team,
I’m encountering a PHP syntax error on my forum when trying to access: (https://thevbi.createaforum.com/index.php?action=admin;area=membergroups)
**Admin → Membergroups → Edit Membergroup**
The error displayed is:
syntax error, unexpected variable "$last_online"
markdown
Copy code
Additional details:
- Forum URL: `https://thevbi.createaforum.com/index.php?action=admin;area=membergroups`
- I have not installed any custom mods or themes recently.
- I did not inject any custom PHP code into header/footer or other templates.
- I have tried:
1. Clearing the file cache (via Admin → Maintenance)
2. Resetting to the default theme
3. Switching the board language (Vietnamese ↔ English)
- The issue persists after all these attempts.
**What I suspect:** It seems like `$last_online` is being referenced in a template or backend PHP file (possibly in `Subs-Membergroups.php` or a similar core file), but in a way that's syntactically incorrect.
**Request:** Could you please investigate this issue on the server side and fix the template or PHP code that is causing this error?
Thank you for your support.
Best regards,
[Hung Pham / Forum Admin, email: truongkinhthanhchovn@gmail.com]
(thevbi.createaforum.com)
I’m encountering a PHP syntax error on my forum when trying to access: (https://thevbi.createaforum.com/index.php?action=admin;area=membergroups)
**Admin → Membergroups → Edit Membergroup**
The error displayed is:
syntax error, unexpected variable "$last_online"
markdown
Copy code
Additional details:
- Forum URL: `https://thevbi.createaforum.com/index.php?action=admin;area=membergroups`
- I have not installed any custom mods or themes recently.
- I did not inject any custom PHP code into header/footer or other templates.
- I have tried:
1. Clearing the file cache (via Admin → Maintenance)
2. Resetting to the default theme
3. Switching the board language (Vietnamese ↔ English)
- The issue persists after all these attempts.
**What I suspect:** It seems like `$last_online` is being referenced in a template or backend PHP file (possibly in `Subs-Membergroups.php` or a similar core file), but in a way that's syntactically incorrect.
**Request:** Could you please investigate this issue on the server side and fix the template or PHP code that is causing this error?
Thank you for your support.
Best regards,
[Hung Pham / Forum Admin, email: truongkinhthanhchovn@gmail.com]
(thevbi.createaforum.com)