Jump to content

Template Error and Forum Post Text Box Not working.


Go to solution Solved by Marc Stridgen,

Recommended Posts

 

On July 1 an update was pushed to our site without warning, which ended up completely crashing our site.   We are receiving this error after completing a restore via a backup (6/28) and now receive the following prompt across all pages including within the AdminCP:

[[Template core/global/global/includeJS is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

After restoring, that error also is preventing new posts from being created and our drop down menus no longer work for a plugin on our site, PERSCOM.

The system log shows the following errors:

Error: Call to undefined method IPS\Request::getEssentialCookies() in /home4/stmarine/public_html/system/Theme/Theme.php(885) : eval()'d code:2316
Stack trace:
#0 /home4/stmarine/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_global_global->includeJS()
#1 /home4/stmarine/public_html/system/Theme/Theme.php(885) : eval()'d code(1234): IPS\Theme_SandboxedTemplate->call('includeJS', Array)
#2 /home4/stmarine/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_admin_global->globalTemplate('1a9db04b016e312...', '\n<div data-base...', Array)
#3 /home4/stmarine/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme_SandboxedTemplate->call('globalTemplate', Array)
#4 /home4/stmarine/public_html/system/Dispatcher/Standard.php(113): IPS_Dispatcher->finish()
#5 /home4/stmarine/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher_Standard->finish()
#6 /home4/stmarine/public_html/admin/index.php(13): IPS_Dispatcher->run()
#7 {main}
LOADED HOOKS
applications/perscom/hooks/perscomCss.php
applications/perscom/hooks/perscomMember.php

 

 

Any assistance is greatly appreciated.  

Link to comment
Share on other sites

10 hours ago, 1stRaiders said:

On July 1 an update was pushed to our site without warning, which ended up completely crashing our site.

Im not sure where you got this impression, but there is no function within the software at all that pushes an update. It has to be actioned by yourself or another member of admin. Letting you know this, as you may want to investigate that on your end. 

In terms of the restore, if things are not working then the restore would seem not to have been performed fully. It does sound like it may simply be a cache problem there though. Try these things first of all

  1. Test without any 3rd party items enabled
  2. Go to support in the admin CP, and click on clear cache
  3. Go to System>Site Features>Applications and disable an application (doesnt matter which) and re-enable it, as this will rebuild some items.

 

Link to comment
Share on other sites

Hi Marc,

We created a cross-post in the technical problems as this appeared to be more than a general issues.  Somehow that post has been deleted over the last several hours, unsure how, but there was a bit more information provided regarding the issue within that post. 

There are only a few people who have access to those functions to push an update, none of which did so in this situation.  It is believed this may have been some update from the hosting provider, but they have also remained unresponsive to our requests for assistance.

We have cleared the cache several times, as well as having tried recovery mode to fix the errors, all without any success.  Reverting to the Invision theme and disabling custom items also has not fixed any of the issues.  

As to the applications, when you say "disable" there is no option presented in our ACP for that, do you mean that we should uninstall those applications and reinstall them?  We presently only run 5 applications (System, Forums, Calendar, Pages and PERSCOM) all of which are currently up to date (4.7.11.1).  We had tried previously with disabling PERSCOM to see whether that was the issue, but the problems persisted.  

 

Additionally, there remains an issue with the support tab as the loading wheels will spin indefinitely and never fully load to assess whether there is any issues on the site.  I have attached a photo for reference.

 

Could contain: File, Webpage, Computer Hardware, Electronics, Hardware, Monitor, Screen

 

Apart from the theme prompt issue, the text box within forum posts, both for creating new topics, editing, and replying presents as a small bar that is not able to be selected or typed within.  I have also attached a photo for reference.

 

Could contain: File, Computer Hardware, Electronics, Hardware, Monitor, Screen

 

 

Link to comment
Share on other sites

At least on the front-end, you are completely missing the JS files that are provided via the includeJS template.

I know you have provided a screenshot that shows 4.7.11.1 as the software version but checking your site, it appears you are running 4.7.6 (I dug down earlier into the versions.json)

If you have installed a theme that is for 4.7.11.x then it could explain why this...

20 hours ago, 1stRaiders said:

IPS\Request::getEssentialCookies()

...exists, as that was only introduced in v4.7.11 of the code.

What happens if you switch to an unaltered Invision theme?

Edited by Nathan Explosion
Link to comment
Share on other sites

Hi Jim,

 

Our public_html/_forums folder and all sub-folders within are writable.  Clearing the datastore folder has not produced any changes to either the error or the support tab issue.

I have attached photographs for reference:

image.png

image.png

image.png

Edited by 1stRaiders
Link to comment
Share on other sites

We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. 

We look forward to further assisting you. 

 

Link to comment
Share on other sites

13 hours ago, Nathan Explosion said:

At least on the front-end, you are completely missing the JS files that are provided via the includeJS template.

I know you have provided a screenshot that shows 4.7.11.1 as the software version but checking your site, it appears you are running 4.7.6 (I dug down earlier into the versions.json)

If you have installed a theme that is for 4.7.11.x then it could explain why this...

...exists, as that was only introduced in v4.7.11 of the code.

What happens if you switch to an unaltered Invision theme?

^ this is probably the most valid point here. If you are getting that error, you have not restored both files and database to their previous state, as the software is looking for things that simply dont exist in that version.

Link to comment
Share on other sites

How would we go about doing such?  If it needs to be performed via the Support tab we are unable to access any of the tools due to the failure to properly load.  Please advise the steps where we would need to begin performing such a restore.

Link to comment
Share on other sites

  • 5 months later...
  • Solution
13 hours ago, sobrenome said:

Hello, I am facing the exact same issue here. How could you manage at the end @1stRaiders?

If you are facing the exact same issue, then you have a site that hasnt fully been restored. I would suggest checking with your hosting company to see whats going on there though, as you appear to be getting 403s

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...