XF 2.1 error while trying to save PAGE_CONTAINER template.

Oops! We ran into some problems. Please try again later. More error details may be in the browser console.

I'm getting that error ONLY while trying to save PAGE_CONTAINER.

Any help on why?

Spolier is what comes up in the console log.

jquery-3.3.1.min.js?_v=9659d3eb:2 POST https://titanscraft.com/admin.php?templates/page_container.1038/save 403
send @ jquery-3.3.1.min.js?_v=9659d3eb:2
ajax @ jquery-3.3.1.min.js?_v=9659d3eb:2
ajax @ core-compiled.js?_v=9659d3eb:42
(anonymous) @ core-compiled.js?_v=9659d3eb:223
setTimeout (async)
submit @ core-compiled.js?_v=9659d3eb:223
(anonymous) @ core-compiled.js?_v=9659d3eb:73
dispatch @ jquery-3.3.1.min.js?_v=9659d3eb:2
y.handle @ jquery-3.3.1.min.js?_v=9659d3eb:2
c @ rocket-loader.min.js:1
core-compiled.js?_v=9659d3eb:44 PHP: <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Attention Required! | Cloudflare</title>

<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
<style type="text/css">body{margin:0;padding:0}</style>


<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/zepto.min.js"></script><!--<![endif]-->
<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/cf.common.js"></script><!--<![endif]-->




</head>
<body>
<div id="cf-wrapper">
<div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
<div id="cf-error-details" class="cf-error-details-wrapper">
<div class="cf-wrapper cf-header cf-error-overview">
<h1 data-translate="challenge_headline">One more step</h1>
<h2 class="cf-subheadline"><span data-translate="complete_sec_check">Please complete the security check to access</span> titanscraft.com</h2>
</div><!-- /.header -->

<div class="cf-section cf-highlight cf-captcha-container">
<div class="cf-wrapper">
<div class="cf-columns two">
<div class="cf-column">

<div class="cf-highlight-inverse cf-form-stacked">
<form class="challenge-form" id="challenge-form" action="/admin.php?templates/page_container.1038/save&amp;cf_waf_tk=00008146810080000011035I6qOo2_AVDL2gpn9MkqPLUadeAM" method="post" enctype="application/x-www-form-urlencoded">
<script type="text/javascript" src="/cdn-cgi/scripts/cf.challenge.js" data-type="normal" data-ray="5025d164cae7d27e" async data-sitekey="6LfBixYUAAAAABhdHynFUIMA_sa4s-XsJvnjtgB0"></script>
<div class="g-recaptcha"></div>
<input type="hidden" name="encreq" value="SpFkEkT6y6Zn59MJsMjj18IbTesk_8BxiQKZ7qIidlhkeJMzEy9RnuWog8KcLUgVaNWmIGSwaXgkAFPuhIqAmyjYAzv36lzBF0upf7X4JRLJKlv5608NcJFQbn85F9cLqwvHKNtDDC_Mnp6oDFvMj4zx1zzscVu6s2qps0RU2EYLlLcY5NIlni1OjuA5zP-s0raU30NvhY3-5y1UGAkkDAZAZzJaMOJxV3g1yQXyBfpCqmN_5PtH11VmZLLjG30odm7w11sMWS2bU45X7-5hZ7LDnw4uRe7NiN2sezZ2CiFuwnm_hErIbES2O5pOZCtqMhhDrmYbPpmg0cMknWUv8ZXC7zIXNWZYrGEsCK4wyTWyskX5Yeh3ihmQQOK8xqPLTxpqGUklyI08eURJVbKYFPxohXsW1fWSV8b7bnfzbl-YFLawzZB_5Gi5vsOwc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4vVEJdmlL4NlPEWOGvnU8jmyBfF6llXfgw1lOMlgfl249Wc6u6lDGCotT8o_6t1jyc0go_LndrtnYlaDC5nH-SifOnpo_nuQSoeDfdArWRDrp8eSnhw1tsFS0rAUlGPbgj57XgtJt73O2_xL4OKUH083JXrwRjOsZzKSfJqeRz9W0FLU-hR3KsPUsxFr9phPKkvU9zlnz94VV77q74IYFeqcpuOfbdcNG10gcnPm7Lta9gVRlfJaDxSMrgBhgwZaaDW93Hdm0LcEv6gLhN6-rZrCHHFjRqsbkR3s4OCS1w6w2A-uB9cOWCN924CZ92EQTrZyfxeeEkHBYpUhEXNY-8EqtS18ZnQnQ1Z0ri2yRTlgv4_dADANZiYBgRVetRF8-rbmO7N7OWHm6DW9uEz828VB5T1GiaIwFCTQiVKVO9jeb0JSBD3JYPSsQ3MGOOaE7DoDL91jlspPPksjp3DOPsGBZauGi4DITsyckNWROaDSvsISCkDEpRT31qJ6nIxgnyEoQYkySRO6jp6Qfplpx23d3s7GtPv9AkASIGLKhXkVxxiAAzF1gWp5v72sOXknLfJoR5FhmsjCcrFWlhBmDg-1d3NF6PGhqd42YCiOc8r0vQmZNx1lNhv3zuTCSUL7JrySZxdt0Y4ERnbPJfvnVVP-r5ORjrnXDfM3b7hLrHcoe7KP1QXX5Beu-TN8DgmPZpkZmNPS6kF65Xc5NWek1uSRdgT_WB0d562yK4MpveFakOy-B1umlV78qc2zv6buBfSdwc3Du5-AVEXDoIcyU6pE7up64F2Ba6TZAE4bJreK7kOy565Tx7l4_TWAM2rnK9NyOFRomIz0gDksg2AOtMf9VkXZmwkYphn57cJCqO1kjLX1vtJzVQZOIj5IjwHqIK5Hh8rS
defaultAjaxError @ core-compiled.js?_v=9659d3eb:44
q @ core-compiled.js?_v=9659d3eb:41
u @ jquery-3.3.1.min.js?_v=9659d3eb:2
fireWith @ jquery-3.3.1.min.js?_v=9659d3eb:2
k @ jquery-3.3.1.min.js?_v=9659d3eb:2
(anonymous) @ jquery-3.3.1.min.js?_v=9659d3eb:2
load (async)
send @ jquery-3.3.1.min.js?_v=9659d3eb:2
ajax @ jquery-3.3.1.min.js?_v=9659d3eb:2
ajax @ core-compiled.js?_v=9659d3eb:42
(anonymous) @ core-compiled.js?_v=9659d3eb:223
setTimeout (async)
submit @ core-compiled.js?_v=9659d3eb:223
(anonymous) @ core-compiled.js?_v=9659d3eb:73
dispatch @ jquery-3.3.1.min.js?_v=9659d3eb:2
y.handle @ jquery-3.3.1.min.js?_v=9659d3eb:2
c @ rocket-loader.min.js:1
 
Edit: Server Error Log:

Server error log
  • ErrorException: Template error: Method canLike is not callable on the given object (XF\Entity\Post)
  • src/XF/Template/Templater.php:980
  • Generated by: Unknown account
  • Aug 7, 2019 at 2:50 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canLike ...', '/home3/wgm5t4l7...', 980, Array)
#1 src/XF/Template/Templater.php(980): trigger_error('Method canLike ...', 512)
#2 internal_data/code_cache/templates/l1/s2/public/EWRporta_article_macros.php(187): XF\Template\Templater->method(Object(XF\Entity\Post), 'canLike', Array)
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s2/public/EWRporta_article_view.php(97): XF\Template\Templater->callMacro('EWRporta_articl...', 'article_post', Array, Array)
#5 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#6 src/XF/Template/Templater.php(1374): XF\Template\Templater->renderTemplate('EWRporta_articl...', Array)
#7 internal_data/code_cache/templates/l1/s2/public/thread_view.php(225): XF\Template\Templater->includeTemplate('public:EWRporta...', Array)
#8 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#9 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#10 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#11 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#12 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#16 src/XF.php(390): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
["url"] => string(36) "/threads/welcome-to-titans-craft.14/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Delete
 
Start with a unedited default style with all of your addons disabled. Enable the addons one at a time and see if the error occurs. If not then enable the custom style.

Once you trigger the error, that would be the culprit.
 
Start with a unedited default style with all of your addons disabled. Enable the addons one at a time and see if the error occurs. If not then enable the custom style.

Once you trigger the error, that would be the culprit.

Given I only have Xenporta installed, and the invalid method was found in a Xenporta style, I assume thats the issue. I'm confused though, as I haven't
made any changes to anythings versions and yet randomly I get this error, that only affects the PAGE_CONTAINER template, on both my custom theme and the brand new unedited one.
 
I had this problem. It's (most likely) a ModSecurity issue. Your host can whitelist the rules causing it if you copy and paste the error messages from the browser console.
 
Last edited:
I had this problem. It's (most likely) a ModSecurity issue. Your host can whitelist the rules causing it if you copy and paste the error messages from the browser console.

This is what was in the error console.
jquery-3.3.1.min.js?_v=9659d3eb:2 POST https://titanscraft.com/admin.php?templates/page_container.1038/save 403
send @ jquery-3.3.1.min.js?_v=9659d3eb:2
ajax @ jquery-3.3.1.min.js?_v=9659d3eb:2
ajax @ core-compiled.js?_v=9659d3eb:42
(anonymous) @ core-compiled.js?_v=9659d3eb:223
setTimeout (async)
submit @ core-compiled.js?_v=9659d3eb:223
(anonymous) @ core-compiled.js?_v=9659d3eb:73
dispatch @ jquery-3.3.1.min.js?_v=9659d3eb:2
y.handle @ jquery-3.3.1.min.js?_v=9659d3eb:2
c @ rocket-loader.min.js:1
core-compiled.js?_v=9659d3eb:44 PHP: <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Attention Required! | Cloudflare</title>

<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
<style type="text/css">body{margin:0;padding:0}</style>


<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/zepto.min.js"></script><!--<![endif]-->
<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/cf.common.js"></script><!--<![endif]-->




</head>
<body>
<div id="cf-wrapper">
<div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
<div id="cf-error-details" class="cf-error-details-wrapper">
<div class="cf-wrapper cf-header cf-error-overview">
<h1 data-translate="challenge_headline">One more step</h1>
<h2 class="cf-subheadline"><span data-translate="complete_sec_check">Please complete the security check to access</span> titanscraft.com</h2>
</div><!-- /.header -->

<div class="cf-section cf-highlight cf-captcha-container">
<div class="cf-wrapper">
<div class="cf-columns two">
<div class="cf-column">

<div class="cf-highlight-inverse cf-form-stacked">
<form class="challenge-form" id="challenge-form" action="/admin.php?templates/page_container.1038/save&amp;cf_waf_tk=00008146810080000011035I6qOo2_AVDL2gpn9MkqPLUadeAM" method="post" enctype="application/x-www-form-urlencoded">
<script type="text/javascript" src="/cdn-cgi/scripts/cf.challenge.js" data-type="normal" data-ray="5025d164cae7d27e" async data-sitekey="6LfBixYUAAAAABhdHynFUIMA_sa4s-XsJvnjtgB0"></script>
<div class="g-recaptcha"></div>
<input type="hidden" name="encreq" value="SpFkEkT6y6Zn59MJsMjj18IbTesk_8BxiQKZ7qIidlhkeJMzEy9RnuWog8KcLUgVaNWmIGSwaXgkAFPuhIqAmyjYAzv36lzBF0upf7X4JRLJKlv5608NcJFQbn85F9cLqwvHKNtDDC_Mnp6oDFvMj4zx1zzscVu6s2qps0RU2EYLlLcY5NIlni1OjuA5zP-s0raU30NvhY3-5y1UGAkkDAZAZzJaMOJxV3g1yQXyBfpCqmN_5PtH11VmZLLjG30odm7w11sMWS2bU45X7-5hZ7LDnw4uRe7NiN2sezZ2CiFuwnm_hErIbES2O5pOZCtqMhhDrmYbPpmg0cMknWUv8ZXC7zIXNWZYrGEsCK4wyTWyskX5Yeh3ihmQQOK8xqPLTxpqGUklyI08eURJVbKYFPxohXsW1fWSV8b7bnfzbl-YFLawzZB_5Gi5vsOwcYN8fC8zpBauKVJhzIpPlAnZdqvdISQnprgpCcviEkCSR9YrfVYetMJrMzdW2GGiQeK_55kgHUPVpjKNVTw16SOdSLRzHuDnP8QtrpPIYQlPV_zA7CKHq2fXJ3UO9NARxDhMM5mhWllSLRCaOj8HTOI2jjJlAqfto0SNMVF2PZNDNTZOG9WRiFmRvk1yg8nRUFJCV0LA12sE4TQPub2LggRujQPnGnIKjCypc5ZfETK0Y9pqV5IWh-HeOuIakIwNnHdlD6uoPuuU7ie5VCqXk32OMu8N9VKhc0IqH8Klz4mcKBLRr1rLoGjpHWN_zruTtyvGutw19lfWWa08Nh6eor7FE1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tS18ZnQnQ1Z0ri2yRTlgv4_dADANZiYBgRVetRF8-rbmO7N7OWHm6DW9uEz828VB5T1GiaIwFCTQiVKVO9jeb0JSBD3JYPSsQ3MGOOaE7DoDL91jlspPPksjp3DOPsGBZauGi4DITsyckNWROaDSvsISCkDEpRT31qJ6nIxgnyEoQYkySRO6jp6Qfplpx23d3s7GtPv9AkASIGLKhXkVxxiAAzF1gWp5v72sOXknLfJoR5FhmsjCcrFWlhBmDg-1d3NF6PGhqd42YCiOc8r0vQmZNx1lNhv3zuTCSUL7JrySZxdt0Y4ERnbPJfvnVVP-r5ORjrnXDfM3b7hLrHcoe7KP1QXX5Beu-TN8DgmPZpkZmNPS6kF65Xc5NWek1uSRdgT_WB0d562yK4MpveFakOy-B1umlV78qc2zv6buBfSdwc3Du5-AVEXDoIcyU6pE7up64F2Ba6TZAE4bJreK7kOy565Tx7l4_TWAM2rnK9NyOFRomIz0gDksg2AOtMf9VkXZmwkYphn57cJCqO1kjLX1vtJzVQZOIj5IjwHqIK5Hh8rS
defaultAjaxError @ core-compiled.js?_v=9659d3eb:44
q @ core-compiled.js?_v=9659d3eb:41
u @ jquery-3.3.1.min.js?_v=9659d3eb:2
fireWith @ jquery-3.3.1.min.js?_v=9659d3eb:2
k @ jquery-3.3.1.min.js?_v=9659d3eb:2
(anonymous) @ jquery-3.3.1.min.js?_v=9659d3eb:2
load (async)
send @ jquery-3.3.1.min.js?_v=9659d3eb:2
ajax @ jquery-3.3.1.min.js?_v=9659d3eb:2
ajax @ core-compiled.js?_v=9659d3eb:42
(anonymous) @ core-compiled.js?_v=9659d3eb:223
setTimeout (async)
submit @ core-compiled.js?_v=9659d3eb:223
(anonymous) @ core-compiled.js?_v=9659d3eb:73
dispatch @ jquery-3.3.1.min.js?_v=9659d3eb:2
y.handle @ jquery-3.3.1.min.js?_v=9659d3eb:2
c @ rocket-loader.min.js:1

How does one host whitelist rules or whatever
 
Back
Top Bottom