GithubHelp home page GithubHelp logo

Comments (13)

psolom avatar psolom commented on June 14, 2024

Hm, I can't reproduce the issue.
Can you provide a steps to reproduce?
Even better if you are able to reproduce it at the http://fm.devale.pro demo site.

The full error trace can help a lot as well.

from richfilemanager-php.

stonino avatar stonino commented on June 14, 2024

It doesn't happen on your demo. Maybe because I'm on Windows? I assume your demo isn't.
The error is:

PHP Warning: mime_content_type(C:/inetpub/wwwroot/dev/downloads/upload.txt): failed to open stream: No such file or directory in C:\inetpub\wwwroot\dev\fm\connectors\php\vendor\servocoder\richfilemanager-php\src\Repository\Local\ItemModel.php on line 376 PHP Warning: filemtime(): stat failed for C:/inetpub/wwwroot/dev/downloads/upload.txt in C:\inetpub\wwwroot\dev\fm\connectors\php\vendor\servocoder\richfilemanager-php\src\Repository\Local\ItemModel.php on line 211

If it's just me, then I can obviously live with it, as my fix seems to hold OK.

from richfilemanager-php.

psolom avatar psolom commented on June 14, 2024

It's not because of Windows. I have my local copy on Windows as well.
I think this could be a bug and I would like to reproduce it to find the reason.

Does this happen each time?
With both existing and newly uploaded files?
Or there is a specific scenary?

Also I can see that that your files folder is outside the RFM plugin folder, right?
Share you configuration, please. Only files which are deffer from the source. Possible targets: filemanager.php, config.local.php, filemanager.config.default.json.

from richfilemanager-php.

stonino avatar stonino commented on June 14, 2024

I'm testing it by uploading a file and then removing it again. But also older uploaded files get the same error.

I haven't touched config.local, as I have my config in filemanager.php. While on the subject, is there an easy way to switch to an images config? I'm using CKEditor(4) and specify a type=images in my URL, but don't know how to limit FM to only show images...

config.local.txt
filemanager.config.json.txt
filemanager.php.txt

I'm on php 7.0.13

from richfilemanager-php.

psolom avatar psolom commented on June 14, 2024

Thanks for details, I will check a bit alter.

If you would like to limit RFM to serve and display the images only then limit extensions list "security.extensions.restrictions" in the config.local.php file.

If you wish to use client-side filtering (affect dispaying only) use the ?filter=image query param in your URL as described in the wiki article

from richfilemanager-php.

psolom avatar psolom commented on June 14, 2024

I have commited a fix for your issue.

Try the latests version of ItemModel.php file and let me know if it works for you.

from richfilemanager-php.

psolom avatar psolom commented on June 14, 2024

I have pushed another commit. I don't think that it will be sufficient now to replace only the ItemModel.php file. I recommend you to replace all the repo classes to avoid errors.

from richfilemanager-php.

stonino avatar stonino commented on June 14, 2024

Thanks for this. I've used the latest and everything works like a charm. Thank again.

from richfilemanager-php.

robsch avatar robsch commented on June 14, 2024

Could you release this version please? The error let the client not update the UI, though the item (tried it with a folder) has been deleted.

from richfilemanager-php.

psolom avatar psolom commented on June 14, 2024

Will do at the end of this week.
If you are about to install this package separately, as I advised you in psolom/RichFilemanager#287, then you can write the package as "servocoder/richfilemanager-php": "dev-master" in your composer.json file and it will take the latest commits.

from richfilemanager-php.

robsch avatar robsch commented on June 14, 2024

@servocoder Thanks! Using dev-master is what I was trying to avoid.

from richfilemanager-php.

psolom avatar psolom commented on June 14, 2024

Released: RFM v2.7.1 + RFM-PHP v1.2.1

@robsch update to the latest version(s).

from richfilemanager-php.

robsch avatar robsch commented on June 14, 2024

@servocoder Great news, thanks!

from richfilemanager-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.