Jump to content

Undefined Constant IN_PHPVMS [SOLVED]

Recommended Posts

Hi guys,

I'm getting this error, can anyone advise how to resolve it please? The site it completely inaccessible.

Warning: Use of undefined constant IN_PHPVMS - assumed 'IN_PHPVMS' (this will throw an Error in a future version of PHP) in /home/singap08/public_html/operations/admin/templates/sidebar_schedules.php on line 1

phpvms 5.5.72-master

php version 7.2

Edited by ProAvia
Issue solved by OP

Share this post

Link to post
Share on other sites

A warning such as this will not make your site inaccessible. It's just a Warning, not an Error.

Did you happen to install an addon admin skin? If so, change back to the default admin skin.

Did the site ever load correctly after you install it? I am guessing that phpVMS is installed in /home/singap08/public_html/operations - is that correct?

Are you also using the default crystal skin or an addon skin?

In /admin/templates/sidebar_schedules.php line 1 is: <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> --- I don't think that line is actually needed. Place "//" before the word 'if' (that will comment out the line), saved the file and try again. Although, that line 1 appears in most all of the template files anyway.

Share this post

Link to post
Share on other sites

I did not have any custom skins installed. The site loaded correctly after installation, I think it was a bad edit to the config.

Overwriting with fresh set of files solved the problem.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...