Fatal error after updgrading
Posted
#6857
(In Topic #1611)
Unfortunately, I can't access the Admin zone because of the fatal error bellow!
Kindly help.

Here is the error:
Fatal error: Uncaught Error: Call to undefined method Hook_sitemap_entry_point::_lang_string_or_literal() in /home1/faresnin/public_html/cp/sources/hooks/systems/sitemap/entry_point.php:229 Stack trace: #0 /home1/faresnin/public_html/cp/sources/hooks/systems/sitemap/page.php(356): Hook_sitemap_entry_point->get_node('adminzone:admin…', NULL, NULL, 50, 4, 4, 258, 'adminzone', 3, Array) #1 /home1/faresnin/public_html/cp/sources/hooks/systems/sitemap/page_grouping.php(395): Hook_sitemap_page->get_node('adminzone:admin…', NULL, NULL, 50, 4, 3, 770, 'adminzone', 3, Array) #2 /home1/faresnin/public_html/cp/sources/hooks/systems/sitemap/zone.php(370): Hook_sitemap_page_grouping->get_node('adminzone:admin…', NULL, NULL, 50, 4, 2, 258, 'adminzone', 3, Array) #3 /home1/faresnin/public_html/cp/sources/sitemap.php(159): Hook_sitemap_zone->get_node('adminzone:', NULL, NULL, 50, 4, 1, 258, 'adminzone', 3) #4 /home1/faresnin/public_html/cp/sources/menus.php(243): retrieve_sitemap_node('adminzone:', NULL, NULL, 50, 4, 258, '_SEARCH' in /home1/faresnin/public_html/cp/sources/hooks/systems/sitemap/entry_point.php on line 229
Critical error – bailing out
This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occurring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
PHP ERROR [1] Uncaught Error: Call to undefined method Hook_sitemap_entry_point::_lang_string_or_literal() in sources/hooks/systems/sitemap/entry_point.php:229 Stack trace: #0 sources/hooks/systems/sitemap/page.php(356): Hook_sitemap_entry_point->get_node('adminzone:admin…', NULL, NULL, 50, 4, 4, 258, 'adminzone', 3, Array) #1 sources/hooks/systems/sitemap/page_grouping.php(395): Hook_sitemap_page->get_node('adminzone:admin…', NULL, NULL, 50, 4, 3, 770, 'adminzone', 3, Array) #2 sources/hooks/systems/sitemap/zone.php(370): Hook_sitemap_page_grouping->get_node('adminzone:admin…', NULL, NULL, 50, 4, 2, 258, 'adminzone', 3, Array) #3 sources/sitemap.php(159): Hook_sitemap_zone->get_node('adminzone:', NULL, NULL, 50, 4, 1, 258, 'adminzone', 3) #4 sources/menus.php(243): retrieve_sitemap_node('adminzone:', NULL, NULL, 50, 4, 258, '_SEARCH' in sources/hooks/systems/sitemap/entry_point.php on line 229
Details here are intended only for the website/system-administrator, not for regular website users.
» If you are a regular website user, please let the website staff deal with this problem.
Depending on the error, and only if the website installation finished, you may need to edit the installation options (the _config.php file).
ocProducts maintains full documentation for all procedures and tools (including disaster recovery). These may be found on the Composr website. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.
Composr is a CMS for building websites, developed by ocProducts.
Last edit: by fares9
Posted
Please try replacing sources/sitemap.php with this:
https://gitlab.com/composr-foundation/composr/-/raw/master/sources/sitemap.php
Posted
Thanks Chris for your reply, but replacing sources/sitemap.php doesn't solve the problem
I have noticed that on the main page these messages has appeared before replacing the sitemap.php file
A language string is missing: NOTIFICATIONS
A language string is missing: NOTIFICATIONS_MARK_READ
Posted
It also shouldn't be possible that not putting in any upgrader would cause some but not all files to be upgraded. I'd think it more likely that an upgrade was canceled/failed part way through, or an upgrade was done with an upgrader archive for a newer version than what you were on, skipping some changes that would be needed.
Regardless, have you tried redoing the upgrade, pasting in the correct upgrader archive for the version you're upgrading from and to and seeing if it completes fully? The upgrader is isolated from most failures that could happen within Composr itself.
Posted

The upgrade wasn't canceled or failed during the upgrade, it showed me that it was completed.
I have tried to re-upgrade, but it doesn't solve the problem.
Now, if I try to add new post, I get this message:
Fatal error: Uncaught Error: Call to undefined function cns_may_access_topic() in /home1/faresnin/public_html/cp/sources/cns_posts.php:68 Stack trace: #0 /home1/faresnin/public_html/cp/sources/cns_topicview.php(535): cns_may_post_in_topic(10, 487, 2, false) #1 /home1/faresnin/public_html/cp/forum/pages/modules/topicview.php(140): cns_read_in_topic(487, 0, 20, false) #2 /home1/faresnin/public_html/cp/sources/zones.php(824): Module_topicview->pre_run() #3 /home1/faresnin/public_html/cp/sources/site.php(1242): load_module_page('forum/pages/mod…', 'topicview', Object(Tempcode)) #4 /home1/faresnin/public_html/cp/sources/site.php(928): request_page('topicview', true, 'forum', NULL, false, false, Object(Tempcode)) #5 /home1/faresnin/public_html/cp/forum/index.php(59): do_site() #6 {main} thrown in /home1/faresnin/public_html/cp/sources/cns_posts.php on line 68
Critical error – bailing out
This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occurring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.PHP ERROR [1] Uncaught Error: Call to undefined function cns_may_access_topic() in sources/cns_posts.php:68 Stack trace: #0 sources/cns_topicview.php(535): cns_may_post_in_topic(10, 487, 2, false) #1 forum/pages/modules/topicview.php(140): cns_read_in_topic(487, 0, 20, false) #2 sources/zones.php(824): Module_topicview->pre_run() #3 sources/site.php(1242): load_module_page('forum/pages/mod…', 'topicview', Object(Tempcode)) #4 sources/site.php(928): request_page('topicview', true, 'forum', NULL, false, false, Object(Tempcode)) #5 forum/index.php(59): do_site() #6 {main} thrown in sources/cns_posts.php on line 68
Details here are intended only for the website/system-administrator, not for regular website users.
» If you are a regular website user, please let the website staff deal with this problem.
Last edit: by fares9
Posted
Anyway, it looks like you have a lot of issues, something very bad has happened. In the screenshot in your first post there is a "generate a personalised manual upgrader" link. You can use this feature to generate an upgrade you extract manually, in case of Composr's process not working correctly.
Posted
An error has occurred
You appear to already be running the latest version.
I have restored the database by host company for the date before of the upgrade, but still the result is same!
Can you provide me a link for the latest upgrade version which can be entered in the URL at composr upgrader page as show in the screenshot in my first post to extracted by myself, It might help.
Last edit: by fares9
Posted
Replacing the database would not help, this is all about files. I should note you should have a full backup of the files as this is something we explicitly state you should create (step 2 of the upgrade instructions).
What you can do is you can generate an upgrader from 10.0.0 here:
Then feed that into the upgrader.
That way, no files will be missing (assuming you really did upgrade from a release no older than 10.0.0).
Or if you don't trust the upgrader itself is going to work again you can manually edit sources/version.php and change 0.37 to 0.0, then try again with the "generate a personalised manual upgrader" link.
Posted
Posted
What you're experiencing here is most likely just your browser cache. Individual CKEditor files tend to get cached very hard.
3 guests and 0 members have recently viewed this.
