Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php.ini]

The tag has no usage guidance.

1
vote
1answer
52 views

Max file size not updating

Hi I am a beginner at WordPress and am currently trying to increase my file upload size. So far I've tried two ways: The first way was to add this to the bottom of the functions.php file: @ini_set( ...
0
votes
1answer
70 views

PHP E_WARNING being shown despite php.ini [closed]

I'm on OS X. I just upgraded to High Sierra 10.13.x from Sierra 10.12.x, and thus to PHP 7 from PHP 5. I suddenly started getting PHP Warning errors displayed in the browser. (It's fine that PHP ...
0
votes
1answer
309 views

Wordpress upload file size error even after raising php limits

I get 'The uploaded file exceeds the uploadmaxfilesize directive in php.ini.' error while trying to upload a plugin which is just 5.1MB. I have raised the limits in php.ini file and also thru webmin. ...
0
votes
1answer
68 views

How does WordPress rewrite URLS using its PHP scripts

My Question is WordPress redirects url even in httpd. httpd doesn't support htaccess. And if developer tries to rewrite urls he have to do it in the httpd.conf file. But WordPress how rewrite urls in ...
0
votes
2answers
389 views

Can't upload images (incorrect “file exceeds upload_max_filesize” error)

This is my first WordPress site. I've installed it on my Linux Ubuntu 16.04 remote server (which is in my house). I've got a LEMP stack installed on this server. When I try to upload images to my ...
0
votes
1answer
35 views

Wp-admin uses different php.ini than the theme files

A strange issue with my webhost (which doesn't seem to have an idea either). I tried to increase the upload limit for the wp installation by changing values in the php.ini. If I check which php.ini -...
0
votes
1answer
1k views

Unable to install and upload theme due to php.ini file [closed]

Issues with uploading my theme to localhost using WAMP Server on Windows 7 Home version. I've changed the limit to 635mb in the php.ini. However, there seems to be TWO php.ini files. These are ...
0
votes
0answers
156 views

How to fix UpdraftPlus's memory issue?

I've tried to restore a backup version of my website through Updraft Plus, a WP Plugin that allows users to backup the website every few days. However, it cannot complete the backup due to this error:...
11
votes
3answers
1k views

Which one does Wordpress prioritize when it comes to php.ini, wp-config and .htaccess?

Let's say I want to change the max upload limit for a Wordpress website and I give the following values: wp-config.php: 128MB php.ini: 256MB .htaccess: 64MB So, which one would Wordpress prioritize ...
1
vote
1answer
2k views

Receiving 404 when uploading file larger than 10kb

I built a file upload form using AJAX code that runs perfectly on my localhost (xampp/apache). I can upload files as large as 256MB. Using HTTP. However, when I upload this code to my nginx server on ...
0
votes
3answers
1k views

OSX El Capitan local install Maximum upload file size: 2 MB But php.ini set to 64M

Brand new site. Not MU. No matter what I do, I cannot get a file uploaded that exceeds 2MB. I'm running a localhost server with WordPress 4.3.1 I've modified both relevant settings in the the site's ...
1
vote
1answer
1k views

Set WP_MAX_MEMORY_LIMIT higher than PHP.ini memory_limit

I've read here, but I want to ask if I have understood this correctly. We have a server in which WordPress admin needed more memory. The PHP memory_limit, in PHP.ini, is set to 256M, and so was ...
0
votes
1answer
3k views

upload_max_filesize in .user.ini Not Reflected in Media Upload

I would like to know why Media Upload does not detect the upload_max_filesize that had been set in .user.ini file as shown below. max_execution_time = 10000 memory_limit = 512M upload_max_filesize = ...
0
votes
2answers
465 views

Weird Cron Error

So my wordpress site keeps going down from a 500 error, about once a day now. The entire site, including the wp-admin, will go down and stop responding to all requests with a 500 error. If I enable ...
0
votes
1answer
1k views

WP 4.3.1 new install on localhost missing php.ini [closed]

I've installed WordPress on my localhost Mac OSX Yosemite box. I'm getting error: The uploaded file exceeds the upload_max_filesize directive in php.ini phpinfo() reports upload_max_filesize = 2M ...
0
votes
2answers
355 views

Why is Wordpress' file upload limit so low? Is changing it harmful?

Why is the WordPress upload limit set to 2mb? This seems prohibitively low, especially when almost everyone has broadband these days. I know this can be overridden, but I was trying to find a reason ...
0
votes
1answer
538 views

Debugging WordPress with xDebug

Until now I was using a local WordPress project and I was able to define the xDebugger in the php.ini file, it's very useful and helpful. But now I'm connected to a remote server and I only have the ...
0
votes
1answer
383 views

Wordpress import error

Firstly I installed WordPress on my site, then I generate a XML file for my blog (akasujjwal.wordpress.com) transfer by using export tool. And when I try to import this XML file to the installed ...
0
votes
1answer
418 views

“open_basedir restriction” but project is within the allowed paths

I had a project working right, but suddenly I'm getting a Database connection error. Looking at the Apache2 logs I can see these lines: PHP Warning: file_exists(): open_basedir restriction in ...
0
votes
3answers
203 views

Wordpress article with 50 000 words loading slow - 100% cpu

I have a wordpress article with 50 000 words. After a debug I realised that the CPU is 100% when I read the post / open the category page. I have a quad core server with 8gb ram (the ram level is ...
5
votes
3answers
6k views

Connection lost. Saving has been disabled… (Updating Posts/Pages)

I've been developing for Wordpress for a few years now without any trouble on an old XP/WAMP development server (v1.7.4) but recently have been getting the error "Connection lost. Saving has been ...
1
vote
2answers
70 views

Increasing the the file upload size

I put these inside wp-admin/php.ini upload_max_filesize = 75M post_max_size = 75M max_execution_time = 300 Still not working, please advice if i am doing the right way or not?
-1
votes
1answer
1k views

Why can't the WP-CLI installer find my php.ini?

I am trying to install WP-CLI on my Mac using the standard installation command (found here: http://wp-cli.org), yet I am receiving the following error message: #!/usr/bin/env php Some ...
1
vote
1answer
80 views

WP & Server Speed [Teacher Question]

I'm a teacher and have used multisite WP for two years now as a resource for completing assignments. This spring semester, I have the most students that I've had on my site (30). Prior to this ...
1
vote
1answer
1k views

Memory errors with media upload, Wordpress can't use more than 96M (while there's 512 available!)

I'm aware that this is a known problem but I was unable to address it using information found in WPAnswers and Wordpress support forums. In my Worpdress single site installation the media uploader is ...
1
vote
1answer
3k views

Getting template_include to work when allow_url_include is off?

I'm working on a plugin that creates a custom post type and I would like to display a custom template without modifying the theme. Here's the simplified code I'm working with: add_filter('...
1
vote
1answer
352 views

How to stop fatal error when loading theme template file directly

If one tries to load a theme template file directly, the following error message is displayed: Fatal error: Call to undefined function get_header() in ... and it goes on to list the full directory ...
0
votes
2answers
5k views

Theme requires allow_url_include = on in php.ini

I don't even know where to start with this one. I'm using a theme that requires me to override server php.ini settings in my own php.ini with allow_url_include = on That setting at very least seems ...