Error messege at the time of wordpress theme uploading - wordpress-theming

Hey there I am trying to install a wordpress theme localy on my xampp server. At the time of doing this I got this error messege.
Warning: POST Content-Length of 14409615 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
Are you sure you want to do this?
Please provide me sufficient solution of this problem(error messege).

You need to edit your php.ini file to allow a larger file upload size:
See here:
PHP change the maximum upload file size
You can create a phpinfo page to find the php.ini file that is loaded:
http://php.net/manual/en/function.phpinfo.php
Please provide me sufficient solution of this problem(error messege).
I don't use xampp, so you might have to actually read the docs yourself to find where the php.ini is, but it shouldn't be too hard.

Related

Mediawiki 1.39.1 issue with upload size

All,
I just moved Mediawiki from a hosting provider installation on my own server (local installation). So far it is working, but I have smaller issues like the upload size of files.
By checking in the web I found out that size limits are configured at the php.ini file (+ LocalSettings.php) and the variables for it are (which I would like to set to 2048 MB like below):
post_max_size = 2048M
upload_max_filesize = 2048M
After I configured that I restarted my apache2, but still at the Mediawiki upload page 8 M is shows as the limit and if i try to upload a file which is a bit over 10 MB I get an advice that it is to big. Additional I would like to add that I set in the Mediawiki config file LocalSettings.php the variable:
$wgMaxUploadSize = 2147483648;
But still no change!
Maybe someone has an idea about this issue?
Thanks and regards
wolpi
My idea was to add as a simple comment, but I do not have enough points yet :-)
Have a look here : https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads for some other suggestions.
Also Adam's suggestion might be a thing. If you use WAMP or MAMP you might have more than one ini files.

How to edit the php.ini file in Ubuntu 19.04 (Disco Dingo)

Consider:
Now I am getting this error. How can I resolve this issue?
I found found some related issue, but that told me change max-size inside file php.ini, so how can I edit file php.ini (phpmyadmin-config)?
Importing into MySQL, the database size is above 100 MB. And the MySQL database size converts it into a ZIP file, and then import working, but it is not inserting all tables.
I'm not sure which OS or Apache server you're using right now.
If you are not aware of the php.ini file path then create one info.php file inside your www/htdocs folder and write the below line of code inside that file.
<?php echo phpinfo(); ?>
Execute the above file in your web browser. You will find the loaded php.ini configuration file path, like shown below.
Now go to the file path and increase the values of the below two variables as per your need.
upload_max_filesize=128M
post_max_size=128M
PS: Don't forget to restart your Apache server. :)
The configuration file is located at the below path:
/etc/php/php_version/apache2/php.ini
Now increase the value of:
post_max_size = 150MB
upload_max_size = 150MB
Then restart the server:
sudo service apache2 restart

How to resize the image and convert to buffer then store to mysql using nodejs

Because When I upload above 2mb size of image in node js using mysql
"not upload throw some issues"
"Got a packet bigger than 'max_allowed_packet' bytes"
I am using npm module multer for file upload. My code for upload image is as follows:
You should modify in the my.ini or ~/.my.cnf file
max_allowed_packet=512M
You can insert this line under [mysqld] section.
After this change please Restart the mysql once.
Thank you!

Uploading small .sql file to MySQL database file returns error (XAMPP on OS X)

I am running a fresh install of XAMPP 1.8.2 for OSX and am currently trying to upload an exported database that is 171kb in size.
Getting hit with this error
Warning: File upload error - unable to create a temporary file in Unknown on line 0
From what I have discovered it may have something to do with write permissions to a /tmp file which doesn't seem to exist on my system.
Trying to set this up so I can make changes locally on a clients website without breaking the live site.
Cheers and thanks for taking a look.
Solved
within the file uploads section of your php.ini there resides this:
;upload_tmp_dir =
To allow for uploads uncomment and give the tmp dir a home:
upload_tmp_dir = "/tmp"
The the most recent default installation of XAMPP on Lion has a couple of very important lines commented out (in regards to phpmyadmin/mysql). Not sure why, but I would love to learn the reasoning behind it.

mySQL: editing/saving my.cnf file

I have found the sample configuration files provided with mysql 5.0, but I am not able to save them, when I edit them. I also tried saving using a different file name but I received an error by windows saying that I don't have permission to save file in that location (I am an administrator).
I need to edit the configuration file so I am able to save more data. I really can't figure out how to do it and have been struck on this problem since hours. anyone who can figure out whats going on?
to edit my.cnf file in linux opensuse 11.3
first of all open terminal window in su mode
then go to the directory /etc
then open my.cnf file in any of the text editor(kwrite);
now just insert the following two parameters after the line [mysqld]
wait_timeout=50
interactive_timeout=50
save and exit;
restart mysql;
now u can set your session time out by using the following:
set wait_timeout=5000;<br>
it is persistent
You need to have root permissions on my.cnf file to edit it.
So login using root user and then you will be able to edit my.cnf and then you need to restart MySQL server in order to reflect changes.
I see that the basic information was included in directing someone to edit the my.cnf; however, there is no step by step available for beginners. I have a great article with step by step instructions and graphics that explains how to get the MySQL settings and how to change the my.cnf as root through shell. Hope the article helps.
How to edit the MySQL my.cnf file
Regards,
James R