Questions tagged [filesystem]

The tag has no usage guidance.

30 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
190 views

Change default uploads file using wp Skeleton

I am using Wordpress Skeleton (https://github.com/markjaquith/WordPress-Skeleton) which pulls the themes etc out of the wp directory. I am trying to set it up so uploads have a custom url (eg: site....
2
votes
0answers
77 views

Securing a multi-user permission structure

I'm currently working on a team that needs two distinct users from the same wpadmin group to be able to modify the wordpress files. Following the guide at Hardening WordPress (Codex), the following ...
1
vote
1answer
35 views

“dashboard”-named PHP file doesn't get included

I've made a simple "test plugin" to demonstrate the issue: my-test-plugin/ ├─ includes/ │ └─ dashboard.php └─ main.php <?php // dashboard.php echo '<h1>Dashboard</h1>'; &...
1
vote
0answers
23 views

How to first edit in local Wordpress editor on page and the add code?

I started a local WordPress site using DesktopServer. (Atom for coding). And I want to start creating the new website by first creating a "page" in local WordPress and creating a basic layout, and ...
1
vote
0answers
56 views

Save PDF File From Plugin to Filesystem /wp_upload

i would like to call a function from another plugin, that returns a pdf. Is there a possibility to save this pdf in the Wordpress Filesystem - wp-upload for example? I just found $wp_filesystem->...
1
vote
4answers
11k views

WordPress and plugins can't update (“inconsistent file permissions” error)?

I have a problem - when I click on "Wordpress update", I receive this message: Downloading update from https://downloads.wordpress.org/release/wordpress-5.1-new-bundled.zip… Unpacking the update… ...
1
vote
0answers
39 views

accessing files in custom folder in wordpress

after uploading files in a custom folder "myuploads" using PHP code, I want to show these files in admin. This folder resides in the root directory along with wp-admin,wp-content,wp-includes folder. I ...
1
vote
1answer
124 views

Why is server preventing admin styles? (Was: Where are WordPress sessions saved?)

[Note: I'm keeping the following opening paragraph here for posterity, but this is no longer a session issue - something wrong on the server is preventing CSS from displaying.] I asked this question ...
1
vote
0answers
64 views

How to know which ajax file or function is called for action

I want to know which ajax file or function is called for action. For example, if i enter some keyword in filtering, it performs some ajax action. When i searched for ajax file chrome developer tools ...
0
votes
0answers
10 views

Files with Arabic characters uploaded with encoded names

previously I has installed Math Rank and its required php extensions (like php-mbstring). Now, I found a problem in media uploading. Any image with Arabic characters in filename, uploaded to wordpress ...
0
votes
0answers
81 views

Save media files (images) to database instead of the filesystem

I have an out-of-the-box installation of WordPress with WooCommerce. I see that uploaded images (e.g. when I create a product) are saved in the filesystem under wp-content/uploads/. I would like the ...
0
votes
0answers
85 views

Serve contents from Nextcloud / WebDAV

I am looking for a solution to show the contents of a folder in a Wordpress site with the folder being hosted on Nextcloud. Since Nextcloud and Wordpress both support WebDAV I thought it would be ...
0
votes
1answer
19 views

temphangle variable missing when using wp_filesystem copy

I get the following error when using $wp_filesystem->copy(); to copy a file from one destination to another. Undefined variable: temphangle in <b>../htdocs/wp-admin/includes/class-wp-...
0
votes
1answer
61 views

File ownership for file tree php user ID - Folder permission 775

I have the same issue as the below topic, where all my folder are set to 755 but I am unable to run updates or upload new media due to folder permissions. Once I set it to 775, the problem is resolved....
0
votes
1answer
188 views

How to write to a text file and save it in a folder for later download?

I've a template file in the 'templates' folder that performs a function based on the JSON input it receives from an external source. I want to write that JSON input in a text file and save it ...
0
votes
1answer
35 views

Where to store sensitive uploaded file?

I'm developing a plugin. Where is the best place to store a user uploaded file that is sensitive in nature? It should not be web accessible. Given the encoding of the file, it's necessary that it be ...
0
votes
0answers
25 views

403 Error on “/”

I am working on deploying wordpress on my personal server just to learn a little bit more about it. I have made it all the way to the admin page but when I try to customize a theme I get a 403 error ...
0
votes
0answers
111 views

How to handle a lot of media files in the uploads folder? (+10.000)

I recently found out that FileZilla only displays 9998 files in a single folder, but our WordPress Media archive has over 58.000 pictures in three folders. So the standard sorting option by date (...
0
votes
0answers
17 views

Downloadable content file structure

I have a bunch of files that will be used as downloadable content. Do I have to upload it as media or can I just upload to a folder through FTP? If yes, which folder?
0
votes
0answers
1k views

Can't Install WordPress (local) Failed to open file wp-includes/wp-db.php

Title kinda says it all. Trying to install WP locally and I get the following error when trying to use the wp-config.php generator UI: Warning: mysqli_real_connect(): (HY000/2002): No such file or ...
0
votes
0answers
947 views

FS method direct on NGINX

WordPress is a great CMS but when it comes to debugging and error reporting it becomes pretty annoying. I've been searching a solution for my problem for quiet a while now. Unfortunately without any ...
0
votes
0answers
421 views

Using external file with WP_USE_THEMES set to false causing 404

I have a file in my template I want to use for a Twitter authentication callback named oauth.php that I'd like to be accessible through htp://mydomain.com/oauth.php: <?php define('WP_USE_THEMES', ...
0
votes
1answer
393 views

Private file system for attachments

Is there a way to make an attachment private? This also includes moving the files to a separate folder for private attachments, even if it's a sub-folder of uploads, to restrict anonymous access fully....
0
votes
0answers
55 views

Folder Permissions + Security Concerns

I messed up bad guys. I while working on another part of my website I accidentally nuked my WordPress folder permissions. I was able to find/fix some problems and I got my site up and running but some ...
0
votes
1answer
59 views

Get original path of user's filesystem of an uploaded media

Is it possible within wordpress to retrieve the original upload path of a media? For example, the user uploaded from C:\pictures\holidays2014\image1.jpg. I want this path, not the created path after ...
0
votes
0answers
242 views

Making a custom upload form and page in the admin section

so I've built this standalone php script which allows my users to upload a CSV which updates JSON data for a feature on our site, but I want to put the script inside of the wordpress admin section for ...
0
votes
0answers
85 views

saving file to external server vip

I have a handwritten script that writes a text file locally in one of my Wordpress pages, but now I need it to read and write to a remote server that is password protected and accessible only through ...
0
votes
0answers
38 views

Which actions can update/change .php files?

As a followup to my question "How to find out if an wp-admin action edited a file?" I now could use a list of actions and files that can actually cause an update or change to .php-files in a default ...
0
votes
1answer
148 views

Displaying $_FILES data (simlar to $_POST)

I'm trying to display $_FILES in wp-admin, and I've been using add_filter and apply_filter, but it does not seem to show the $_FILES array values. My goal is to show the values in $_FILES so I can ...
0
votes
1answer
458 views

Accessing a file saved outside webroot in a wordpress post

I have some files saved outside the webroot and need to allow posts in WordPress to be able to access the files. Following is the location of one of the files: /home1/Mathone/TESTS/Test1/index1....