Mibew Messenger Community

General => Support => Topic started by: markinfurkin on May 07, 2015, 12:14:09 PM

Title: Error during installation
Post by: markinfurkin on May 07, 2015, 12:14:09 PM
Hi guys,
i trying instaal de mibew 2.0.0 in localhost with xampp, but this error occurring:
Code: [Select]
Warning: Application stopped because of uncaught exception Stash\Exception\WindowsPathMaxLengthException "Cache path exceeds Windows PHP MAX_LENGTH of 260 characters. " (C:\xampp\htdocs\mibew\vendor\tedivm\stash\src\Stash\Driver\FileSystem.php:230) in C:\xampp\htdocs\mibew\libs\classes\Mibew\Application.php on line 165
Query failed: Table 'mibew.locale' doesn't exist

then, i try print (echo) the created path ,this results:
Code: [Select]
C:\xampp\htdocs\mibew/cache/stash\1952a01898073d1e\561b9b4f2e42cbd7\38a865804f8fdcb6\57cd99682e939275\ef3b209be94f84a3\e38cd571d52d4568\55b558c7ef820e6e\00e5993b9e55d93b\336d5ebc5436534e\61d16e63ddfca327\c23f7ab876ac167e\05468ef79f046cb7\97eff1ec87548ea5\ff877580f81b39d8.php
anybody can help me?
Title: Re: Error during installation
Post by: Dmitriy Simushev on May 07, 2015, 12:23:10 PM
Hi,

It's because Windows platforms can have problems with too long cache files path.

You have two options:
1. Do not use windows platforms
2. Use another cache storage (see https://github.com/Mibew/mibew/blob/master/src/mibew/configs/default_config.yml#L42)
Title: Re: Error during installation
Post by: markinfurkin on May 07, 2015, 12:40:45 PM
i change to none and worked fine, tks! :D
Title: Re: Error during installation
Post by: ebonweaver on May 12, 2015, 03:57:34 AM
Had the same issue trying to install 2.0 on Redhat:
Query failed: Table 'mibew2.locale' doesn't exist

Just before submitting this post, I realized the documentation was misleading/ incorrect.  It's written for a sub folder, not running in the root URL, so in my case I had to hit URL/install.php as opposed to URL/mibew/install.php
Lesson learned, don't just follow the instructions, read them, understand them, adapt them as needed  :)

Hope this helps others!
Title: Re: Error during installation
Post by: jmanuel on November 03, 2015, 03:32:15 AM
i change to none and worked fine, tks! :D
can you tell me how you fixed?
Title: Re: Error during installation
Post by: Dmitriy Simushev on November 09, 2015, 01:22:02 PM
Here is a part of the default configs/config.yml file:

Code: [Select]
# Cache subsystem
cache:
    # This value determines where the cached data will be stored. Possible
    # values are "none", "file_system" and "memcached".
    #
    # If "none" is used the caching will be disabled. This option should be used
    # only if none of the other options works.
    #
    # ... SOME COMMENTS ARE SKIPPED HERE....
    storage: file_system

So if you want to turn of caching you have to replace
Code: [Select]
    storage: file_system
line with
Code: [Select]
    storage: none

Notice, that spaces in the beginning of the line are important!