Fatal error after updgrading

Post

Posted
Rating:
#7932 (In Topic #2419)
Avatar
Standard member
fares9 is in the usergroup ‘Fan in action’
I have upgraded to the version on the admin zone, but I have received a Fatal error because I forgot to enter the URL (as usuall) when I press the proceed button.

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

Online now: No Back to the top

Post

Posted
Rating:
#7933
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
It looks like not all files extracted correctly.

Please try replacing sources/sitemap.php with this:

https://gitlab.com/composr-foundation/composr/-/raw/master/sources/sitemap.php


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7934
Avatar
Standard member
fares9 is in the usergroup ‘Fan in action’

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

Online now: No Back to the top

Post

Posted
Rating:
#7935
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
You're certain you replaced sources/sitemap.php and you still get the exact same error? It shouldn't be possible, because that file contains the compatibility change that Composr is complaining about here (the new _lang_string_or_literal function).

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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7937
Avatar
Standard member
fares9 is in the usergroup ‘Fan in action’
Yes, I am sure I copied the sitemap.php file to /sitemap folder, the piture bellow, show the situation.
 

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

Online now: No Back to the top

Post

Posted
Rating:
#7940
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
You copied the file, but did you get the same "Call to undefined method Hook_sitemap_entry_point::_lang_string_or_literal()" error message after doing so, or a different error message?

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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7941
Avatar
Standard member
fares9 is in the usergroup ‘Fan in action’
When I click on the link : generate a personalised manual upgrader I get these messages:

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

Online now: No Back to the top

Post

Posted
Rating:
#7942
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ah, so this means sources/version.php upgraded, but apparently some files did not. I think it's likely here somehow you upgraded from a version newer than what you were on. E.g. lets imagine you were on 10.0.4, and you used an upgrader from 10.0.20 to 10.0.37, it wouldn't work because any files changed between 10.0.4 and 10.0.20 would not have been upgraded unless those same files were also changed between 10.0.20 and 10.0.37.

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:
Composr 10.0.37 released - Composr
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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7943
Avatar
Standard member
fares9 is in the usergroup ‘Fan in action’

Thanks Chris for your assistance 

Finally my website is working fine on version 10.0.37, but When I click on any icons in the editor area, I get the following message

 

 

Last edit: by fares9

Online now: No Back to the top

Post

Posted
Rating:
#7944
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Glad it finally (mostly) worked.

What you're experiencing here is most likely just your browser cache. Individual CKEditor files tend to get cached very hard.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,052 topics, 7,195 posts, 10,825 members
  • Our newest member is deek
Birthdays:
Back to Top