Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Fatal error: Allowe...
 
Notifications
Clear all

Fatal error: Allowed memory size

7 Posts
3 Users
0 Reactions
9,073 Views
(@treddy_karra)
Posts: 5
Active Member
Topic starter
 
[#2623]

Hello

When I opened the link it came up with an error and when I lookup the line in Sql.php, there is only 377 lines of code but the error is referring to 1579. What's wrong with it?

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in C:xampphtdocsprojectsmodelpersistenceSql.php on line 1579

Please advise.

Thanks
Thirumal


 
Posted : 25 Sep 2015 23H18
(@babynus)
Posts: 14952
Member Admin
 

A "memory size" error will reproduce not always on same point.

When I opened the link

What did you do ?
Could you delail use case leading to error ?


 
Posted : 26 Sep 2015 14H43
(@treddy_karra)
Posts: 5
Active Member
Topic starter
 

This error throws at the same point every time when you open the login page.

Thanks
Thirumal


 
Posted : 01 Oct 2015 18H43
(@babynus)
Posts: 14952
Member Admin
 

It is really weird.
The default 128MB memory is large enough for all scripts (it may just be too small to convert big reports to PDF)
One option is to try and disable not used PHP extension.
For instance XDebug can consume memory.

I searched and found that line number 1579 can be line in calling script.
I found /model/persistence/SqlElement.php with line 1579 :

		$result = Sql::query($query);

so it's a very good candidate for source of issue.
What you can do, to try and find hints, is activate some specific debugging mode : add in your parameters.php file a new parameter :

$debugQuery=true;

Test again and post log file.


 
Posted : 03 Oct 2015 13H24
(@jck1307)
Posts: 6
Active Member
 

Hello,
I have the exact same error. I already had a functioning installation with wordpress on my server and I tried to add projeqtor on it.

Where I have to set the $debugQuery=true; instruction in parameters.php?

I put it just after scriptlog instruction but I haven't more information in error.log

require_once "../tool/projeqtor.php";^M
scriptLog(' ->/view/parameter.php');^M
^M
$debugQuery=true;

Thanks for your help,

JC


 
Posted : 16 Jan 2016 10H48
(@babynus)
Posts: 14952
Member Admin
 

Hi,

It is not is the /view/parameter.php wich is the screen (in /view) that displays parameters (user and global parameters).
I now realize that name is ambigous...

It is in the parameters.php (with an s) that contains your parameter (db infos, log infos).
Default location is /files/config/parameters.php, but you may (and should) have changed is on install.
You'll retreive the location of this file (if you don't remember where you moved it) in /tool/parametersLocation.php : it contains one only line with definition of location of parameters file

$parametersLocation = '../files/config/parameters.php'; // This is the default location

In the parameters.php fiel, you'll find location and name of your log file. Default is :

$logFile='../files/logs/projeqtor_${date}.log';

You can add $debugQuery=true; just after this line.


 
Posted : 17 Jan 2016 13H24
(@jck1307)
Posts: 6
Active Member
 

Hi,
it was finally a problem with my php installation. Too many sessions in /tmp.

Sorry for the noise :whistle:

JC


 
Posted : 17 Jan 2016 20H20
Share:

Scroll to Top