How to Change PHP max_input_vars Limit

Posted by on Nov 15, 2017 in Web Development | 0 comments

PHP's max_input_vars settings determines how many input variables should be allowed to be passed in the request. The default value for max_input_vars is set to 1,000 and is usually enough. The limit can easily be reached if the php developer has created a bulk editing/processing functionality. This was the case with one of our WordPress plugins which allows people to edit their WordPress media files' attributes such as alt, caption, description called Orbisius Media Property Editor These snippets should allow you to increase the php's max_input_vars limits. You will need to add those lines to your .htaccess file. Note: the settings will work for hosting servers that use apache web server. If the above doesn't work check with your hosting's support if it's possible if they can increase those limits via custom php.ini file. You can check if the change has worked if you create a temporary php file that calls phpinfo(); function. Then you can look for max_input_vars value. Related https://www.godaddy.com/community/Managing-WordPress/How-to-change-my-PHP-limit-max-input-vars/td-p/10706 Test WordPress site deployed in seconds? Yes, it's possible. Visit qSandbox for more...

Read More

How to Turn off Auto Indentation for Bullets in Google Docs

Posted by on Nov 9, 2017 in Business | 0 comments

Google docs provides a nice interface for creating documents. Sometimes, however, it tries to anticipate what you're trying to do. I find it very annoying when it starts indenting bullets, lists by itself. Sometimes I want to add additional information in between the list items. I can press SHIFT+ENTER and am able to type between […]

Google docs provides a nice interface for creating documents. Sometimes, however, it tries to anticipate what you're trying to do. I find it very annoying when it starts indenting bullets, lists by itself. Sometimes I want to add additional information in between the list items. I can press SHIFT+ENTER and am able to type between the items but when I add a new item the numbering doesn't continue. How to turn auto indentation off in Google docs Open the document and wait for Google docs to fully load. Then go to Tools > Preferences > Uncheck Automatically detect lists checkbox. Here's a video how to fix it.   Related...

Read More

How to fix PHP Warning:Declaration of ... should be compatible with .... in WordPress plugins/themes

Posted by on Nov 3, 2017 in Articles | 0 comments

Problem: PHP Warning:  Declaration of ... should be compatible with .... You will see this error when you (or your hosting company) upgrades to the latest php 7 which is great. This is wp-cli output before the warnings were suppresses. This is wp-cli output after the warnings were suppressed   The other problem is that […]

Problem: PHP Warning:  Declaration of ... should be compatible with .... You will see this error when you (or your hosting company) upgrades to the latest php 7 which is great. This is wp-cli output before the warnings were suppresses. This is wp-cli output after the warnings were suppressed   The other problem is that based on the error reporting settings php will could show those warning messages to your users and/or in your log files. It would be stupid to run out of space because of those warnings. Suppressing all of the warnings is not a good idea as it will make the troubleshooting harder when it's needed. There are multiple ways to fix this. Solution #1 One of the ways to remove this php warning is that you will have to go and inspect the code where the warnings are coming from. This could be plugins/themes which contain php classes. It seems something has changed and php 7 doesn’t like it. This is because some method's parameters don’t method(s) those in their the parent class’ or vice versa.  Then fix the parameters so they match. This solution is long term, however, if you have full control over the code. Solution #2 Ignore the warning and suppress it. In the context of WordPress plugins/themes it’s a tedious work to go through and fix each plugin or theme’s files. This is also pointless because a new update would override your changes anyways. This is the approach I’d recommend for the time being while the developers fix their code in the upcoming months. You can use this code in a file that's get included first. This is usually a config file. In WordPress case you can add it to wp-config.php (right after the opening php tag: <?php or to your functions.php file. If you'd rather install a WordPress plugin please check Orbisius Warning Suppressor plugin.     Were you also have been searching for: How to Suppress PHP Warning: Declaration of ... should be compatible with .... How to Remove PHP Warning: Declaration of ... should be compatible with .... How to Get rid of PHP Warning: Declaration of ... should be compatible with ....   Do you use test/staging sites? Visit qSandbox for more...

Read More

How to Create a CSV File with PHP using thephpleague

Posted by on Oct 17, 2017 in Programming | 0 comments

the latest version requires php 7+ but the old 8.x branch can work with a lower version of php so you can download it from: https://github.com/thephpleague/csv/tree/8.2.2

the latest version requires php 7+ but the old 8.x branch can work with a lower version of php so you can download it from: https://github.com/thephpleague/csv/tree/8.2.2 <?php // https://github.com/thephpleague/csv/blob/8.x/examples/writing.php include_once 'shared/csv-8.2.2/autoload.php'; use League\Csv\Writer; // http://csv.thephpleague.com/8.0/bom/ //$writer->setOutputBOM(Writer::BOM_UTF8); //adding the BOM sequence on output $header = ["position" , "team", "played", "goals difference", "points"]; $records = [ [1, "Chelsea", 26, 27, 57], [2, "Arsenal", 26, 22, 56], [3, "Manchester City", 25, 41, 54,], [4, "Liverpool", 26, 34, 53], [5, "Tottenham", 26, 4, 50], [6, "Everton", 25, 11, 45], [7, "Manchester United", 26, 10, 42], ]; $writer = Writer::createFromPath('./file.csv', 'w'); $writer->insertOne($header);...

Read More

Qualities of the Successful Freelancer

Posted by on Oct 7, 2017 in Business | 0 comments

Being a freelancer/subcontractor is becoming the norm nowadays. With that many freelancers it's very convenient for the business to hire people per project and if the project needs more resources to hire even more people. The things i is just like cloud services. This is good for the business because of the unpredictability and the […]

Being a freelancer/subcontractor is becoming the norm nowadays. With that many freelancers it's very convenient for the business to hire people per project and if the project needs more resources to hire even more people. The things i is just like cloud services. This is good for the business because of the unpredictability and the teams can shrink or expand as needed. If you are serious about your freelancing career here are the qualities I believe will help you get and retain your clients. Finding clients The client's won't find themselves you need to dedicate time and effort every single day to look for clients [twitter, job boards etc] that can benefit from your services. Also if they are good fit for you. Even though you can probably service lots of clients you have to be picky about that. a bad client can drain your energy and vice versa. You want clients that respect your processes, pay on time and are understanding when you need to unplug. Not all clients will reply when your contact them and that's OK. You need to keep going without loosing motivation. I have noticed that 1-3 out of 20-30 people will get back to you and out of that 1 may hire you. It is also important how you approach each project. Lots of people including myself I would copy & paste the same content. I wanted to be efficient. It's important to take a minute or two to get an idea what the project is about and ask meaningful questions. If you can even provide some steps that you'd take to complete the project you would be seen as someone who can really do it. What I have done is to check that potential client's website and come up with some suggestions. The idea is to provide value as soon as possible. For some clients I've created a short video recording (up to 1-3 minutes) explaining how I would approach the project. Sometimes I  also turn on my webcam which shows my face in the bottom right corner of the video. The audio + video recording helps the client to determine my level of English (for non-native speakers). Having a picture communicates what person you are. Work ethic Have a great work ethic. If you promise that something will be ready by a given date do everything possible to make that deadline. If you see issues or probables that may cause the deadline to be pushed forward tell the client immediately as soon as you find that out. Waiting for the last possible moment is a really bad idea. You have to be realistic when things are not going well. In such cases...

Read More
We're working on a free WordPress migration service called wpmove.org Check the site to learn more ;)