These files are trying to set php.ini directives first of which is
@ini_set('upload_max_size', '64M');
Think this is wrong (Could not test it). The name of the directive is
upload_max_filesize
Check here: hidden link
Second:
There are times when we need to get the root WP directory.
Currently, all functions trying to do this are assuming that we use the default WordPress structure, like this:
But that is not always the case and I'm pretty sure I'm not the only one using a WordPress boilerplate like Bedrock (hidden link).
But then comes the problem with getting the root WP directory because the structure is changed to:
bedrock-project/
--> config/
--> vendor/
--> web/
----> app/ (this is the wp-content)
------> plugins/
------> themes/
------> uploads/
----> wp/ (this is the WP root)
------> wp-admin/
------> wp-content/ (contains the default WP themes)
------> wp-includes/
------> index.php
------> wp-blog-header.php
------> wp-load.php
------> ...
----> index.php (redirecting to wp/wp-blog-header.php)
bedrock-project/web/app - That is the content directory. This is where you put all your new code and stuff. WP_CONTENT_DIR constant points here.
bedrock-project/web/wp - This is the WP root directory. Basically, you never have to edit anything in this directory as it gets overwritten with every WP update. ABSPATH constant points here.
Hope this info helps you in fixing this as soon as possible.
I would like to have additional information about your custom directory structure.
I would like to know where you would like to implement such custom directory structure and is there any specific reason behind that because I'm assuming that different client have different directory structure.
The organization of Bedrock is similar to putting WordPress in its own subdirectory but with some improvements.
More information here: hidden link
I am sure your DEV team knows what Bedrock WordPress Boilerplate is. Or, they shouldn't call themselves wp developers if they haven't.
Tell me if you need more information on this matter.
And, you really should check the link I post for second time in here already and a few more in another threads. hidden link
We all are aware of the possibility to put WordPress on its own director and we should be fully compatible with that out of the box. It does not matter if the specific file structure is using Bedrock, or another one. Our QAs used to do testing with custom directory structures in the past.
if you find any issue with bedrock or custom directory structure (WordPress in its own subdirectory), we need error log in order to track the issue and find what is going wrong there.
Could you please provide proper error log so we can identify the issue after reviewing it.
I have set the next reply to private which means only you and I have access to it.
OK, here's an example. CRED form with custom post upload field. I try to upload something and I get "Upload failed!". There are no errors in the debug.log.
However I've tracked the problem and its here:
Thank you for sharing this information. I'll pass this to our concerns department. I hope other functionality working well and if not please report with proper debug log so we can track the error.
I have good new that the issue you reported with "image upload" with your custom directory structure is fixed with our develop branch and fix will be shipped with next release of CRED.
This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.