Fresh install of version: 10 RC11 on NameCheap servers

Post

Posted
Rating:
#731 (In Topic #147)
Avatar
Standard member
Malatesa is in the usergroup ‘Well-settled’
It's always a bit challenging to make big changes in software, I'd imagine, especially if it might require some heavy debugging afterward. So break out the coffee (or tea if you live in the UK?), and take a look at this error. I keep this NameCheap server around just to goof around with, so the error isn't an issue for me. 

First, I mass-deleted the html directory. Even got rid or .htaccss. I blasted the old database completely, and reassigned a new user to it, with a new passwd. Fresh install of 10 RC11.

Everything went perfectly with the install, until I got to the last page that told me the site was installed, and that I could now add some pages to the site, of just Go To The Site. In this install, I decided not to have a forum, or forum users, so I said "None" on the Add Forum page early in the installation. Also, the kind of site I installed was a basic type. I forgot the name, now, but it was the bare bones selection. For the options on the next few pages, I only decided to add a newsletter. Nothing else. No Wiki, no forum, no avatar stuff…just bare bones stuff.

When I clicked Take Me To The Website after the install was complete, I got the following error page…hope this helps. Unlike other errors, this error prevents even a login after a logout.

(EDIT: after running the installer again, and not selecting Minimalistic Site, but instead selecting Brocuhre type site, it does not have errors anymore. Something to do with Minimalistic site type?)

An error has occurred

PHP NOTICE [8] Undefined offset: 0 in sources/tempcode.php on line 1125 (version: 10 RC11, PHP version: 5.6.22, URL: /index.php?page=start)

Here is the stack trace:

Below is a stack trace revealing the state Composr was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Composr website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File    '/home/witcbxzr/public_html/sources/failure.php'
Line    983
Function    'get_html_trace'
Args    
File    '/home/witcbxzr/public_html/sources/global2.php'
Line    910
Function    '_fatal_exit'
Args    
'PHP NOTICE [8] Undefined offset: 0 in sources/tempcode.php on line 1125'
File    '/home/witcbxzr/public_html/sources/failure.php'
Line    281
Function    'fatal_exit'
Args    
'PHP NOTICE [8] Undefined offset: 0 in sources/tempcode.php on line 1125'
File    '/home/witcbxzr/public_html/sources/global2.php'
Line    781
Function    '_composr_error_handler'
Args    
'notice'

8

'Undefined offset: 0'

'sources/tempcode.php'

1,125

5
File    '/home/witcbxzr/public_html/sources/tempcode.php'
Line    1,125
Function    'composr_error_handler'
Args    
8

'Undefined offset: 0'

'/home/witcbxzr/public_html/sources/tempcode.php'

1,125

a:3:{s:8:"seq_part";a:4:{i:0;a:0:{}i:1;i:0;i:2;s:11:"REQUIRE_CSS";i:3;a:0:{}}s:8:"children";N;s:5:"param";a:0:{}}
File    '/home/witcbxzr/public_html/sources/tempcode.php'
Line    1,780
Function    'handle_symbol_preprocessing'
Args    
a:4:{i:0;a:0:{}i:1;i:0;i:2;s:11:"REQUIRE_CSS";i:3;a:0:{}}

NULL
File    '/home/witcbxzr/public_html/sources/tempcode.php'
Line    1,182
Function    'handle_symbol_preprocessing'
Class    'Tempcode'
Object    Tempcode -> …
Type    '->'
Args    
File    '/home/witcbxzr/public_html/sources/tempcode.php'
Line    1,780
Function    'handle_symbol_preprocessing'
Args    
array

NULL
File    '/home/witcbxzr/public_html/sources/site.php'
Line    877
Function    'handle_symbol_preprocessing'
Class    'Tempcode'
Object    Tempcode -> …
Type    '->'
Args    
File    '/home/witcbxzr/public_html/index.php'
Line    73
Function    'do_site'
Args    

The site is closed, but you have special access.
Commandr: the Composr command line environment  Admin Zone  Chat with other Composr users (Select page rendering tool)
Sitemap Rules Privacy Feedback   Mobile version Witches Press Keyboard shortcuts
Copyright © 2016 ( Witches.Press ) A A A
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.
A template file is missing: (themes/default/templates/.tpl or an overridden equivalent to this path) (version: 10 RC11, PHP version: 5.6.22, URL: /index.php?page=start)
Stack trace…
File -> 'sources/failure.php'
Line -> 975
Function -> 'die_html_trace'
Args -> a:1:{i:0;s:191:"A template file is missing: <kbd></kbd> (<kbd>themes/default/templates/.tpl</kbd> or an overridden equivalent to this path) (version: 10 RC11, PHP version: 5.6.22, URL: /index.php?page=start)";}
File -> 'sources/global2.php'
Line -> 910
Function -> '_fatal_exit'
Args -> array
File -> 'sources/tempcode.php'
Line -> 830
Function -> 'fatal_exit'
Args -> array
File -> 'sources/mail.php'
Line -> 1,242
Function -> 'do_template'
Args -> a:8:{i:0;s:0:"";i:1;N;i:2;s:2:"EN";i:3;b:0;i:4;N;i:5;s:4:".css";i:6;s:3:"css";i:7;s:13:"Witches_Press";}
File -> 'sources/web_resources.php'
Line -> 449
Function -> 'filter_css'
Args -> array
File -> 'sources/web_resources.php'
Line -> 407
Function -> '_css_tempcode'
Args -> array
File -> 'sources/mail.php'
Line -> 753
Function -> 'css_tempcode'
Args -> array
File -> 'sources/failure.php'
Line -> 1,110
Function -> 'mail_wrap'
Args -> array
File -> 'sources/failure.php'
Line -> 1,009
Function -> 'relay_error_notification'
Args -> array
File -> 'sources/global2.php'
Line -> 910
Function -> '_fatal_exit'
Args -> a:1:{i:0;s:71:"PHP NOTICE [8] Undefined offset: 0 in sources/tempcode.php on line 1125";}
File -> 'sources/failure.php'
Line -> 281
Function -> 'fatal_exit'
Args -> a:1:{i:0;s:71:"PHP NOTICE [8] Undefined offset: 0 in sources/tempcode.php on line 1125";}
File -> 'sources/global2.php'
Line -> 781
Function -> '_composr_error_handler'
Args -> a:6:{i:0;s:6:"notice";i:1;i:8;i:2;s:19:"Undefined offset: 0";i:3;s:20:"sources/tempcode.php";i:4;i:1125;i:5;i:5;}
File -> 'sources/tempcode.php'
Line -> 1,125
Function -> 'composr_error_handler'
Args -> a:5:{i:0;i:8;i:1;s:19:"Undefined offset: 0";i:2;s:47:"sources/tempcode.php";i:3;i:1125;i:4;a:3:{s:8:"seq_part";a:4:{i:0;a:0:{}i:1;i:0;i:2;s:11:"REQUIRE_CSS";i:3;a:0:{}}s:8:"children";N;s:5:"param";a:0:{}}}
File -> 'sources/tempcode.php'
Line -> 1,780
Function -> 'handle_symbol_preprocessing'
Args -> a:2:{i:0;a:4:{i:0;a:0:{}i:1;i:0;i:2;s:11:"REQUIRE_CSS";i:3;a:0:{}}i:1;N;}
File -> 'sources/tempcode.php'
Line -> 1,182
Function -> 'handle_symbol_preprocessing'
Class -> 'Tempcode'
Object -> Tempcode -> …
Type -> '->'
Args -> a:0:{}
File -> 'sources/tempcode.php'
Line -> 1,780
Function -> 'handle_symbol_preprocessing'
Args -> array
File -> 'sources/site.php'
Line -> 877
Function -> 'handle_symbol_preprocessing'
Class -> 'Tempcode'
Object -> Tempcode -> …
Type -> '->'
Args -> a:0:{}
File -> 'index.php'
Line -> 73
Function -> 'do_site'
Args -> a:0:{}
 

Last edit: by Malatesa

Online now: No Back to the top

Post

Posted
Rating:
#743
Avatar
Standard member
SoccerDad is in the usergroup ‘Community saint’
I have the same issue after an upgrade from RC10 to RC11, site is now dead in the water, including adminzone:

Code

PHP NOTICE [8] Undefined offset: 0 in sources/tempcode.php on line 1125 (version: 10 RC11, PHP version: 7.0.4-7ubuntu2.1, URL: /adminzone/index.php?page=start)

UPDATE: commenting out line 1125 in sources/tempcode.php has solved the problem with no apparent ramifications but I'll continue to watch for side effects

Code

//            require_css($param[0]);

Last edit: by SoccerDad


"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved
Online now: No Back to the top

Post

Posted
Rating:
#744
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
This obviously will need to be looked at carefully, but please try this quick fix:

Attachment

sources/tempcode.php


Sorry for the delayed reply Malatesa.


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:
#745
Avatar
Standard member
SoccerDad is in the usergroup ‘Community saint’
Posted tempcode.php has also addressed the problem, thanx Chris!

I'm glad I finally have some time to return to playing with Composr, it's been a while. I see your response to the community has not changed, topnotch!

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved
Online now: No Back to the top

Post

Posted
Rating:
#748
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ok guys, a few of you received this problem. Sorry for the inconvenience. A recent optimisation interacted with a recent mail fix, to create an issue that only affected sites with mail queueing enabled (which isn't the dev environment).

I have properly tracked it down, and the following files fully fix it:

Attachment

sources/comcode_renderer.php

Attachment

sources/symbols.php

Attachment

sources/tempcode.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:
#777
Guest user
Is this implemented on the upgrade now???


Brat Rat
Back to the top

Post

Posted
Rating:
#778
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Yes


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,827 members
  • Our newest member is LowfareMart
Birthdays:
Back to Top