Memory overflow error Joomla - memory

I'm not very experienced with Joomla. I've installed Joomla 3.3 and Uber 1.0 as a template. I created two languages, English and Italian, and the menu which has to redirect the user.
But when I try to surf the site I get this error:
Warning: touch(): Utime failed: Operation not permitted in /usr/local/psa/home/vhosts/oikosarredamenti.it/httpdocs/plugins/system/t3/includes/core/less.php on line 422 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /usr/local/psa/home/vhosts/oikosarredamenti.it/httpdocs/plugins/system/t3/includes/lessphp/less/less.php on line 5401
What's wrong?

In the Joomla Baackend, go to:
System (top menu) >> System Information >> Directory Permissions
and check that the cache folder is writable. If not, then change the permissions to 775 using an FTP Client such as FileZilla or a Joomla extension such as Admin Tools.
Hope this helps

Related

Fatal error: Allowed memory size exhausted after MAMP update

I know this question can be found a lot of time on this forum and the internet. But I can't seem to find the answer to my specific question.
I'm running a Drupal website, and since the update of MAMP from 5.5 to 5.6 I get the following error:
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) when running a composer require in the terminal.
I updated the php.ini tot 1024MB instead of 128MB of the current php version I'm running via MAMP. When I add a php file to my root with <?php phpinfo(); ?> I see that the memory is like I want so 1024MB. When I look at the location of the php ini file I see it is in the MAMP folder.
But I still get the error. When I run this php -r "echo ini_get('memory_limit').PHP_EOL;" in my terminal I see the 128MB again. When I try to find the php ini that is running using
php -i|grep 'php.ini' I get:
Configuration File (php.ini) Path => /etc
So it looks like the php.ini file is somewhere else. But I don't know where and can't change it. How can I solve this?
I also tried changing the composer memory using php -d memory_limit=-1 /usr/bin/composer but this didn't solve the problem either.
My question is, how can I solve this problem? How can I find the php.ini file that is used. Or how can I change the memory limit?
Update:
Running php -i | grep 'Configuration File' in the terminal ouputs:
Loaded Configuration File => (none)
And maybe good to know that I have the option Make this version available for command line enabled on the MAMP php section.
I tried many of the suggestions on this and a few other stack overflow questions but couldn't get it to work until I tried:
COMPOSER_MEMORY_LIMIT=-1 composer require 'yourpackagenamehere'
Just trying COMPOSER_MEMORY_LIMIT=-1 by itself before running the command didn't seem to work. Not sure why, but I had to run them on the same command line in a similar way as documented in the composer troubleshooting: https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors
I ended up adding a php.ini file to the /etc folder on my computer. This way the php memory_limit raise did work. And checking it in the terminal did show me the right value. But as Alister already said, this didn't fix the problem. The problem was not in the php.ini memory_limit.
I found out that using COMPOSER_MEMORY_LIMIT=-1 in the terminal at the beginning of my session put the memory limit to unlimited during that terminal session. This fixed the problem.
After that I added, alias composer="COMPOSER_MEMORY_LIMIT=-1 composer" to my bash file and know everything is working like I would expect.
Changing the amount of memory in php.ini won't help - that is the limit for what is being used by the webserver's version of PHP - and having too much available for the webserver can cause problems (at least when running in production).
Composer, when it is being run from the command line, will, by default set the limit to 1,610,612,736 bytes - 1.5 GB.
As you are apparently still on PHP 5.6, that's also a very considerable problem. PHP 7+ is a great deal more efficient with memory, as would be an up to date version of composer.
Finally, to actually solve the problem: Restrict your requirement to be more specific since that keeps memory usage lower.

Issue instaling Dolphin # Permissions Reversal scr

am trying to install dolphin on my mac. I used the following to set up php and other required software.
http://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/
At permission reversal screen, I am asked to change the permission. Which i did so (chmod 400). However I received error. I reverted to writeable permission and tried again still I get the below error -
Warning: require_once(/Library/WebServer/Documents/~tusharsaurabh/pleasereferme/inc/version.inc.php): failed to open stream: No such file or directory in/Users/tusharsaurabh/Sites/pleasereferme/inc/header.inc.php on line 154
Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/~tusharsaurabh/pleasereferme/inc/version.inc.php' (include_path='.:') in/Users/tusharsaurabh/Sites/pleasereferme/inc/header.inc.php on line 154
When I check the file /Library/WebServer/Documents/~tusharsaurabh/pleasereferme/inc/version.inc.php, there is no tusharsaurabh folder under Documents folder. However /Users/tusharsaurabh/Sites/pleasereferme/inc/header.inc.php is present.
Please let me know how to fix it.
The issue was $dir[root](in header.inc) had incorrect path. Corrected the path and installation was complete.

Xcode server bot failing test action because "Too many open files in system."

The error I'm seeing is as follows:
Test target PrototypeTests encountered an error (The operation couldn’t be completed. Too many open files in system. Too many open files in system)
Test target Prototype Integration Tests encountered an error (The operation couldn’t be completed. Too many open files in system. Too many open files in system)
I am able to run the analyze and archive actions with no problems but enabling the test action causes the above errors. I've even tried this with empty tests and the problem still persists.
The output of sudo launchctl limit maxfiles on my server is:
maxfiles 256 unlimited
Please let me know if I can provide any more information.
You need to increase your ulimit. You should add the line:
ulimit -n 4096
in your ~/.profile or similar.
The reason you have to add this line to your bash launch file is because just running sudo ulimit -n 4096 will only change the limit in current bash session.
I received this same message while trying to compile while low RAM, low disk space, and many open apps & files on my desktop. Closing most of them and emptying the trash resolved the issue.

"Exception TDBXError in module xxx.exe at xxx. Unable to load dbxmys.dll (errorCode126). It may be missing from the system path."

I have installed MySQL on a client machine, created and populated the databases – MySQL is up and running. I then copied dbxmys.dll and libmysql.dll from my machine to the Windows/system32 folder of the client and copied the compiled project EXE file. On executing the project I get the error
"Exception TDBXError in module xxx.exe at yyy. Unable to load
dbxmys.dll (errorCode126). It may be missing from the system path."
I have also tried to copy dbxmys.dll and libmysql.dll to the same folder as the executable but that did not work either.
Most plausible explanation, as so often has been the case, is that your have a 32 bit process on a 64 bit machine. In that case the file system redirector means that 32 bit processes that access System32 get redirected to the 32 bit system directory, SysWOW64. That's where you should put the files, if indeed the system directory is where they need to go.
Another possible failure mode could be that you have 64 bit DLLs and a 32 bit process. Or vice cersa.
That said, the system directory is for, well, system files. And applications should not modify it. So, putting the DLLs in the application directory would seem to be the right thing to do. You tried that without success. Hard to say why it failed. Perhaps there are further dependencies. Debug this using Dependency Walker in Profile mode.

Error "File or directory corrupted" when an MVC template is being loaded

How do we deploy the application
Publish to local filesystem with Visual Studio.
Create an application on production server (IIS)
Copy the files to the app directory
There is an error in our production server.
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The disk structure is corrupted and unreadable.
Source Error:
Line 1: <div class="row-fluid">Line 2: <div id="graph" class="span24">Line 3: </div>
Source File: /Views/ProductionOrder/ProductionOrderFlow.cshtml Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
I have checked the file system and no error found.
The template file can be successfully opened with notepad.
Any other possible reasons?
If you used a shared folder in order to copy the files, you may check this answer from super user: link. Your files might be blocked due to security reasons. Right click and properties for the root folder to check for this.
Second option might be replacing the hard disk drive of the server.
Third option might be different file encoding between your computer and live computer.

Resources