XF 1.1 Template problem

robi052

Active member
I have problem with template. With debug false see error message "The following error occurred: The requested page could not be found."
With debug true error message is "The following error occurred: A controller for the route path undefined.json was not found.".

Before that have problem with installation plugin LoginUserLocks. On rebuild cache forum is gone/blank. It happened with a firefox 18.0 @ Linux Mint 14. Then try with Chromium and rebuild is finished. But now on rebuild template cache must manual click to Continue rebuilding 5 times to get forum back.

xenForo version: 1.1.3
Installed Add-ons: Avatar for banned users, Digital Point Ad Positioning, ForumRunner for xenForo, LoginUserLocks - Prevent attempts to brute force the login area, Social Beta2, sonbb- Prevent double post, Tapatalk, Template Modification System, [bd] Tag me, [Tinhte] XenTag

Use CloudFlare. In library/config.php add this line
Code:
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }


My EXTRA.css http://pastebin.com/6fQ9qeGu

PS Sorry on my english
 
"The following error occurred: A controller for the route path undefined.json was not found.".

What page gives that error?

The cache rebuild can timeout and have problems if you have a lot of styles and languages. You should delete any styles / languages that you aren't using. Otherwise you did the correct thing by manually clicking through the rebuild process until it completed. During the rebuild (or in the case of a failed rebuild) it is expected that the forum be blank because the templates didn't finish rebuilding. Just keep refreshing the page until the rebuild finishes. You can prompt a rebuild by visiting /install and clicking the button to rebuild the master data.

Note that the rebuild at save time is for the purpose of maximizing performance at run time. It's a good tradeoff, but the process can be intensive.
 
The following error occurred: A controller for the route path undefined.json was not found.
In ACP/Tools/Server logs dont have any error message. That error message come on popup when open any link in Templates if debug is true (Pic #1). I dont know if this same problem, but cannot upload code and image. Missing box. (Pic #2). If Debug is false error is like in Pic #3

Edit #2
Now dont work:
  1. Insert Code, Image and Link (manual with BB code work)
  2. More options... in reply (Unspecified error) Resolved
  3. Error message undefined.json in ACP/Template Reloved
Try forumurl/forum/install - Rebuild Master Data but dont help

Slika zaslona iz 2013-01-17 11:43:04.webpSlika zaslona iz 2013-01-17 11:44:43.webpSlika zaslona iz 2013-01-17 11:50:28.webp
 
After remove some addons have 2 server errors

Error info:
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Deadlock found when trying to get lock; try restarting transaction - library/Zend/Db/Statement/Mysqli.php:214

Stack trace:
Code:
#0 /home/username/public_html/forum/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/username/public_html/forum/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/username/public_html/forum/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#3 /home/username/public_html/forum/library/XenForo/Model/Template.php(1268): Zend_Db_Adapter_Abstract->insert('xf_template_map', Array)
#4 /home/username/public_html/forum/library/XenForo/CacheRebuilder/Template.php(38): XenForo_Model_Template->insertTemplateMapForStyles(Array, true)
#5 /home/username/public_html/forum/library/XenForo/ControllerHelper/CacheRebuild.php(26): XenForo_CacheRebuilder_Template->rebuild(0, Array, NULL)
#6 /home/username/public_html/forum/library/XenForo/ControllerAdmin/Tools.php(78): XenForo_ControllerHelper_CacheRebuild->rebuildCache(Array, 'admin.php?add-o...', 'admin.php?tools...', true)
#7 /home/username/public_html/forum/library/XenForo/FrontController.php(310): XenForo_ControllerAdmin_Tools->actionCacheRebuild()
#8 /home/username/public_html/forum/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/username/public_html/forum/admin.php(13): XenForo_FrontController->run()
#10 {main}

Request state:
Code:
array(3) {
  ["url"] => string(61) "hxxp://www.hedonist385.in/forum/admin.php?tools/cache-rebuild"
  ["_GET"] => array(1) {
    ["tools/cache-rebuild"] => string(0) ""
  }
  ["_POST"] => array(5) {
    ["process"] => string(1) "1"
    ["caches"] => string(44) "["Template","AdminTemplate","EmailTemplate"]"
    ["position"] => string(1) "0"
    ["redirect"] => string(18) "admin.php?add-ons/"
    ["_xfToken"] => string(53) "1,1358422771,f5f53a205aba93015f9acd6ab34f11bff6651627"
  }
}


Second server error - Resolved ( how )

Error info:
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate entry 'conversation_insert-conversation_insert_email_subject' for key 1 - library/Zend/Db/Statement/Mysqli.php:214

Stack trace:
Code:
#0 /home/username/public_html/forum/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/username/public_html/forum/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/username/public_html/forum/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#3 /home/username/public_html/forum/library/XenForo/Model/EmailTemplate.php(338): Zend_Db_Adapter_Abstract->insert('xf_email_templa...', Array)
#4 /home/username/public_html/forum/library/XenForo/Model/EmailTemplate.php(255): XenForo_Model_EmailTemplate->compileAndInsertEmailTemplate(Array)
#5 /home/username/public_html/forum/library/XenForo/CacheRebuilder/EmailTemplate.php(28): XenForo_Model_EmailTemplate->compileAllEmailTemplates()
#6 /home/username/public_html/forum/library/XenForo/ControllerHelper/CacheRebuild.php(26): XenForo_CacheRebuilder_EmailTemplate->rebuild(0, Array, NULL)
#7 /home/username/public_html/forum/library/XenForo/ControllerAdmin/Tools.php(78): XenForo_ControllerHelper_CacheRebuild->rebuildCache(Array, 'admin.php?add-o...', 'admin.php?tools...', true)
#8 /home/username/public_html/forum/library/XenForo/FrontController.php(310): XenForo_ControllerAdmin_Tools->actionCacheRebuild()
#9 /home/username/public_html/forum/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/username/public_html/forum/admin.php(13): XenForo_FrontController->run()
#11 {main}

Request State:
Code:
array(3) {
  ["url"] => string(61) "http://www.hedonist385.in/forum/admin.php?tools/cache-rebuild"
  ["_GET"] => array(1) {
    ["tools/cache-rebuild"] => string(0) ""
  }
  ["_POST"] => array(5) {
    ["process"] => string(1) "1"
    ["caches"] => string(17) "["EmailTemplate"]"
    ["position"] => string(1) "0"
    ["redirect"] => string(18) "admin.php?add-ons/"
    ["_xfToken"] => string(53) "1,1358422209,b93784698bae51b7dcf0fb34ae696fa3d1b67beb"
  }
}
 
Problems was partially solved. Problem with json resolved with revert PAGE_CONTAINER. After revert disappeared and problem with Deadlock. But there is still a problem bbcode embed image, code and link. Which template must revert?
 
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Deadlock found when trying to get lock; try restarting transaction - library/Zend/Db/Statement/Mysqli.php:214

I will refer to Mike's post:

http://xenforo.com/community/threads/fatal-deadlock-when-upgrading.23471/#post-290271

Code:
Duplicate entry 'conversation_insert-conversation_insert_email_subject' for key 1 - library/Zend/Db/Statement/Mysqli.php:214

Run this query to delete the conflicting record:

Code:
DELETE
FROM xf_email_template_phrase
WHERE phrase_title = 'conversation_insert_email_subject';

Then visit /install and click the button to rebuild the master data. That should fix the error.
 
Try this

A. Remove all changes
1. Revert templates
2. Rebuild template cache

B. Remove all addons
1. Remove all addons
2. Rebuild template cache
3. Rebuild Master data (/install/)

C. Upload all again (rewrite all files)
1. Unzip xenforo source
2. Upload with Filezilla all files in xenforo_1.1.3_51C42090DF_full/upload/*
3. Rebuild Master data

Nothing help. In Google Chrome cannot see anything, in Firefox see this in attachment. In Firefox must press tab to insert in post. Try install xenforo in local desktop and all work fine.

Slika zaslona iz 2013-01-19 21:14:18.webpSlika zaslona iz 2013-01-19 21:14:27.webpSlika zaslona iz 2013-01-19 21:14:42.webp
 
When disable minify JS and HTML in CloudFlare sometime works, sometime dont. Itry Google Chrome and Mozilla Firefox on Linux Mint 14

Edited:
After disable minify JS, CSS and html and Rocket Loader in CloudFlare and clear cache on CloudFlare and browser (I use firefox and Chromium) all work fine. So problem is with that.

About RocketLoader
About minify
 
Top Bottom