Fatal Error while creating Luna on Xampp

Avatar

By NightyIO 1 September 2016 21:30

Member · 4 comments

Hello Guys,
today I tried to install Luna 2.0 on Xampp. After the installing I tried to visit my new forum. While I was doing this there came a bug (?).
Allowed memory size of 134217728 bytes exhausted (tried to allocate 7168 bytes) in C:\xampp\htdocs\forum\themes\Fifteen\views\header.php on line 37

|NightyIO

Avatar

By Yannick 2 September 2016 14:32

Administrator · 1,390 comments

Which version of XAMPP are you using?


You can do anything

Avatar

By NightyIO 2 September 2016 20:07

Member · 4 comments

I'm using 3.22

Last edited by NightyIO (2 September 2016 20:08)

Avatar

By Yannick 3 September 2016 20:53

Administrator · 1,390 comments

3.22 isn't a version of XAMPP.


You can do anything

Avatar

By NightyIO 13 September 2016 18:22

Member · 4 comments

xamppcp1tgjoaulh2.png
I don't know how to find out which version Xampp has. Instead I am sent you the CP.

Last edited by NightyIO (14 September 2016 12:25)

Avatar

By Yannick 14 September 2016 09:15

Administrator · 1,390 comments

That the Control Panel version indeed, anyway, you should just take a look what version of PHP is installed as XAMPP follows the same versioning.


You can do anything

Avatar

By demonscry 15 September 2016 11:30

Member · 1 comments

hello there, im just new user and sorry i have bad english.
i think i have same xampp version with you and yes i have same error too even i try from luna v1-v2, only work with Luna 1.0 Preview 0-3 and all version modernbb..
im migrate to wampp version 3.0.6_x64_apache2.4.23_mysql5.7.14_php5.6.25-7.0.10 and all perfect. maybe work for you too..

Avatar

By NightyIO 15 September 2016 18:53

Member · 4 comments

phpversionlunaegv1n2w7kz.png

Last edited by NightyIO (15 September 2016 18:54)

Avatar

By Yannick 17 September 2016 21:06

Administrator · 1,390 comments

I'll be looking into this issue.


You can do anything

Avatar

By Namnodorel 4 October 2016 13:14

Member · 10 comments

Same thing here, just tried to set up a fresh installation and then this error came up...

Avatar

By Yannick 4 October 2016 18:41

Administrator · 1,390 comments

A fix has been made and is on track to be part of Luna 2.0.4.


You can do anything

Avatar

By Namnodorel 8 October 2016 11:27

Member · 10 comments

Uuuuhm... Still happening 😒

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 7168 bytes) in [...]\htdocs\forum\themes\Fifteen\views\header.php on line 37

Last edited by Namnodorel (8 October 2016 11:28)

Avatar

By Yannick 8 October 2016 14:51

Administrator · 1,390 comments

On what page is that? On my install, it doesn't happen anymore.


You can do anything

Avatar

By Namnodorel 8 October 2016 19:04

Member · 10 comments

Right on the first launch. I still get to initiate the database, etc. but when I'm done with it and then try to open the forum page for the first time, I get the error.

Avatar

By Namnodorel 16 October 2016 21:37

Member · 10 comments

Maybe it's a bug with XAMPP? When I comment out line 37, the error appears on line 42. When I comment that out, too, the error appears at line 48, which is an empty line. But I have no idea what could cause such an error...

Also when I reinstalll Luna and select Sunrise instead of Fifteen as starting Theme, the same error (In the /Fifteen directory!!!) appears.

Last edited by Namnodorel (16 October 2016 21:48)

Avatar

By Namnodorel 16 October 2016 23:04

Member · 10 comments

Okay, I had some time and put out the little PHP knowledge I got some time ago... And I think I got the error: At \themes\Fifteen\views\header.php the first lines are

<?php
require ('header.php');
?>

By that. You are self-referencing the file. The referenced file references itself again and again and again... And in consequence you've created an endless loop which at some point takes all the memory the server has. By removing the require, the problem got solved for me and I think it should be solved for everyone else.

(By the way, I think we are now at step 6 of issue hunting:
1. That can't happen.
2. That doesn't happen to my machine
3. That shouldn't happen.
4. Why did that happen?
5. Oh, I see.
6. How did that ever work?)

Avatar

By bem 17 October 2016 06:50

Member · 118 comments

I believe the require header in \themes\Fifteen\views\header.php is referencing to the base root header.php file which is entirely different.

Avatar

By Yannick 17 October 2016 10:11

Administrator · 1,390 comments

No. require ('header.php'); in the theme file is including the header-file in the projects root, not itself. The problem here is  that some pages are also asking to require the header.php file. Anyway, a fix for this issue has been implemented days ago.


You can do anything

Avatar

By Namnodorel 17 October 2016 20:53

Member · 10 comments

Well, it fixed the problem for me... I guess I just got a buggy installation, all sorts of stuff is going wrong with it...

Avatar

By Namnodorel 13 November 2016 11:52

Member · 10 comments

After a fresh install of the newest release everything works now... No idea