partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 400 forks source link

Partkeepr-installation with PHP-7.1.4 #856

Closed Schurick closed 7 years ago

Schurick commented 7 years ago

System Information

Hi, I try to install Partkeepr on XAMPP (Win7, 64bit) with PHP 7.14.

Following error message occur:

image

Please help.

Drachenkaetzchen commented 7 years ago

Can you give me the value of the realpath_cache_size found on your phpinfo.php page?

Schurick commented 7 years ago

Local and Master value are both 4096K, respectively.

Drachenkaetzchen commented 7 years ago

You could try to set a value of 4194304 instead of 4096K - maybe that works? I currently don't have PHP 7.14 to test with

Remember to verify the actual value after changing it.

Schurick commented 7 years ago

Have changed the value, error-list is smaller now:

image

Drachenkaetzchen commented 7 years ago

You most likely need to adjust the memory_limit value as well. Seems that PHP 7.1 has changed some behavior. Sorry for the inconvenience

Drachenkaetzchen commented 7 years ago

Oh, what you also could try: Set the error_reporting in your php.ini file to E_ALL ^ E_NOTICE

Schurick commented 7 years ago

Ok, I changed the memory_limit from 128M to 134217728. Now the setup continues, with warnings: image Isn't opcache the PHP accelerator? Or do I have to install APCu to get more performance?

What does the error_reporting-change do?

Drachenkaetzchen commented 7 years ago

No, opcache caches PHP statements and APCu caches data. I don't know if APCu exists for XAMPP.

The error_reporting changes the way PHP reports errors, in your case, it supresses PHP notices such as the non-well-formed integer value. The value I've given you makes sure that PHP reports everything except notices.

Schurick commented 7 years ago

Setup was successfull. There is APCu for XAMPP, intalled it too, works great. Thanks a lot.

Schurick commented 7 years ago

But loading a csv-file into the importer does not work anymore:

image

Drachenkaetzchen commented 7 years ago

Looks like a filesystem issue, similar to https://github.com/partkeepr/PartKeepr/issues/853

Drachenkaetzchen commented 7 years ago

Please be aware that running PartKeepr on Windows is not supported, as I do not have any knowledge of using XAMPP and the quirks of the windows filesystem

Schurick commented 7 years ago

I changed the permission of the partkeepr-folder to "everyone", but have still this error. What else can I do?

Drachenkaetzchen commented 7 years ago

I don't know

Drachenkaetzchen commented 7 years ago

The root cause is that the unlink() PHP function receives a "Resource temporarily unavailable" error from your operating system. I can't tell why this is happening.

Drachenkaetzchen commented 7 years ago

unlink() does delete a file. I hope this helps somehow.

Schurick commented 7 years ago

Can I change the temp-location?

Schurick commented 7 years ago

I did not find the reason, but commenting out the unlink()-function helped in my case.

I think it´s a PHP-issue, cause it worked with PHP-5.6.