Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Allowed memory #224

Open
D4rkBytePT opened this issue Oct 18, 2024 · 4 comments
Open

Fatal error: Allowed memory #224

D4rkBytePT opened this issue Oct 18, 2024 · 4 comments

Comments

@D4rkBytePT
Copy link

I've been trying to use teamspeak php for some time now, I'm making a room panel and I managed to do it but it took a long time to load the page and gave an error that I didn't understand, everything worked correctly but this error still appeared, I had to increase the memory limit to 2gb, today I came to try to redo everything from scratch and I came across this error:

Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 2147483648 bytes) in C:\laragon\www\vendor\planetteamspeak\ts3-php-framework\src\Helper\StringHelper.php on line 73

how can i solve this?

@ScchutzZ
Copy link

ScchutzZ commented Nov 8, 2024

+1

1 similar comment
@scheissegalo
Copy link

+1

@MajorOli
Copy link

MajorOli commented Feb 9, 2025

Can anynone gave me the example or the function in there this error occurs? Its important to know how the method relations are chained.

Following both Examples.
At this Example the Transport will be clear but the real disconnect from TS3 Server is not finished.

$this->ts3_VirtualServer->getParent()->getTransport()->disconnect();

At this Example its a real disconnect from TS3 Server

$this->ts3_VirtualServer->getParent()->getAdapter()->getTransport()->disconnect();

So you forget to set a getter method this will be end in many different Errors. To find this Error isnt easy because a few of get methods have overrides from other getters methods.

So when you need help then show us the function there you have written in there this error occurs.

@scheissegalo
Copy link

Can anynone gave me the example or the function in there this error occurs? Its important to know how the method relations are chained.

Following both Examples. At this Example the Transport will be clear but the real disconnect from TS3 Server is not finished.

$this->ts3_VirtualServer->getParent()->getTransport()->disconnect();
At this Example its a real disconnect from TS3 Server

$this->ts3_VirtualServer->getParent()->getAdapter()->getTransport()->disconnect();
So you forget to set a getter method this will be end in many different Errors. To find this Error isnt easy because a few of get methods have overrides from other getters methods.

So when you need help then show us the function there you have written in there this error occurs.

I had good luck with the dev branch—all errors are gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants