PHP

Read all posts Tagged for this section

How to Fix the_date() Returning Empty Date inside Loop in WordPress

Are you using the_date function inside the loop to display post published date? Well, you might notice the_date() returning empty date for the posts that are published on the same day. For example, if you have two posts published on the ...

Not safe to rely on system’s timezone settings -PHP Warning

Here's another error related to Datawrapper installation - "PHP warning:  It is not safe to rely on system's timezone settings". Below is the complete error message from Apache error_log file. PHP Warning:  phpinfo(): It is not safe to rely ...

Fix 404 Error on Password protected folders inside WordPress!

If you are trying to password protect a folder inside WordPress directory, then you will probably end up with '404 not found' error while accessing it via web browser. This error is caused due to the WordPress Permalink feature. This ...

Fix Custom option is disabled no YARPP templates were found in your theme

Question: I have been using YARPP WordPress plugin for displaying related posts in my website. The plugin comes with options such as List, Thumbnails and Custom. I tried using both the List and thumbnails display options, but the Custom option was ...

What’s the difference between die and exit functions in PHP?

One of my student asked me couple of questions - what is the difference between print and echo (which I have covered already here) and the difference between die and exit functions. Well, there's no difference between exit and ...

PHP Startup Error : Unable to load dynamic library, wrong ELF class: ELFCLASS64 [Solved]

PHP thrown this error PHP Warning:  PHP Startup: Unable to load dynamic library wrong ELF class: ELFCLASS64, while installing Composer on my CentOS box having PHP version 5.3.3. Below is the complete error message:PHP Warning:  PHP Startup: Unable to load dynamic ...

How to Install Composer, the PHP Dependency Manager?

Composer is a dependency manager for PHP, which allows you to require all dependant libraries for a particular project. In layman terms, composer can bring in all dependant libraries required on a project by project basis and keeps them all ...

How to Check If a Visitor to your Website is from a Mobile or PC in PHP?

Ever want to check if a particular visitor to your website is from a mobile device or desktop using PHP? then here's how you can do that. $_SERVER in PHP, a super global variable or an array that contains information about ...

[MediaWiki] Error creating thumbnail: Unable to save thumbnail to destination [Solved]

I'm quite new using MediaWiki version 1.24.4. The MediaWiki allows me to upload files such as PDF, docx, ppt etc...and it works fine as well. But I get this error 'Error creating thumbnail: Unable to save thumbnail to destination' ...

Why echo and print are not Functions in PHP and their differences

I hear few of my colleagues call 'echo' and 'print' as functions in PHP. But actually they are not. According to the descriptions from 'php.net', echo and print are language constructs and not functions. It means, you are not required to use ...

vps germany

How to Edit Left Sidebar Menu in MediaWiki?

I recently deployed MediaWiki for one of my project to help my team members share and collaborate on specific research areas. By default, MediaWiki comes with a left sidebar that features navigation links such as Main page, Tools, Special pages, Recent changes, ...

Error ‘The file you uploaded seems to be empty. This might be due to a typo in the filename. Please check whether you really want to upload this file’ [MediaWiki – Solved]

In one of my previous article, I wrote about - how to upload PDF, DOC, PPT files in MediaWiki. But when I uploaded a PDF file, MediaWiki thrown an error message as "The file you uploaded seems to be ...

How to Increase Maximum File Upload Size and allow PDF Uploads in MediaWiki

By default, MediaWiki allows user to upload jpg, png, ogg and tiff files that are up to 2MB in size. However, if you wish to upload other file formats such as PDF, PPT, DOC etc...then here's how you can do that. Moreover, ...

How to Disable or Remove Plugin’s CSS File in WordPress?

One of the problem that I face with WordPress Plugins is that - the plugins can include their own CSS and JavaScript files. If you are not going to write custom CSS or override the styles offered by the plugins, then ...

5 Ways to Customize Product Tabs in WooCommerce!

I was recently working on WooCommerce for some of my client projects, where I learned to customize product tabs according to the client's requirement. Well, you got it. I'm going to share few tips that helped me to customize product tabs ...

[WooCommerce] How to replace ‘Choose an option” with Attribute name in variation select menu?

In WooCommerce, the product attributes used for variations will display as a select menu in product page. For example, if I had created an attribute named 'Size' and used it for variation, then a 'Size' select menu will appear in the ...

How to Display/Fix Indian Currency Symbol in WooCommerce?

Indian Currency symbol was officially announced in 2010 and thereafter operating systems, word processors and websites started to use the new rupee symbol. Particularly for websites, the webrupee api set the tone (for some reason, the webrupee api does ...

How to display Product Variation Price inside Variation drop down list in WooCommerce?

By default, WooCommerce plugin will display product variations as a drop down menu in the single product page. For example, a T-shirt would be available in various sizes/variations (say M, L, XL etc...) and those options will be displayed via select drop ...

MediaWiki Image Upload – Fatal exception of type mwexception [Solved]

Question: Hi techglimpse, I have recently installed MediaWiki version 1.25.2 successfully. But I'm not able to upload an image file (say JPEG) via 'Upload file' link present at the sidebar. The MediaWiki fails with an error message as "fatal exception ...

  1. Pages:
  2. 1
  3. 2