Gabriele

Gabriele

Author's details

Name: Gabriele
Date registered: 18/04/2011

Biography

Gabriele has a passion for logic and mathematics without numbers that apply, within Labs Project Management , in timely researching solutions at the same time elegant and extremely functional. Gabriele is also a guy who likes adventure travel, explore new places and meet people who has something to tell. Among the many explorations , the gastronomic and local realities are his favorite.

Latest posts

  1. Dynamic bind_param for mysqli update query in PHP — 02/03/2016
  2. Fix PHP blank page and manage errors without server access — 29/02/2016
  3. Cannot install language in Prestashop on localhost — 25/03/2015
  4. Send var_dump result to a string variable with PHP — 27/07/2014
  5. json_encode(): Invalid UTF-8 sequence in argument and SLIM — 17/05/2014

Most commented posts

  1. WordPress Plugin – Limit Post Creation — 27 comments
  2. Howto set timezone in php.ini with Plesk — 9 comments
  3. Howto solve problem Fatal error: Call to undefined function curl_init() — 4 comments
  4. Set table td value with Jquery — 2 comments
  5. Mysql – check if a date is between two dates — 2 comments

Author's posts listings

Mar 02

Dynamic bind_param for mysqli update query in PHP

If you need to dynamically bind params to an UPDATE query when you are using mysqli statement you will face some troubles. But few lines far you are going to find the right solution for you $query = ”; $flag = false; $bindParam = ”; $refArray = array(); $refArray[] = &$bindParam; //set the 0 field //Manage …

Continue reading »

Feb 29

Fix PHP blank page and manage errors without server access

If  you have a blank page and you don’t any access to web server log you can use these few lines of code before the your PHP code causing the crash. // Display Errors ini_set(‘display_errors’, ‘On’); ini_set(‘html_errors’, 0); // Error Reporting error_reporting(-1); // Shutdown Handler function ShutdownHandler() { if (@is_array($error = @error_get_last())) { return(@call_user_func_array(‘ErrorHandler’, $error)); …

Continue reading »

Mar 25

Cannot install language in Prestashop on localhost

Installing Prestashop on your PC using AMP platform like XAMPP can become a trouble, first of all we are using Windows OS. If you have the following error:  Cannot install language “English (English)” or any others languages ( we test it also for Italiano ) the solution is not so easy to bring out.

Continue reading »

Jul 27

Send var_dump result to a string variable with PHP

Maybe you need to capture var_dump result in a variable to use it like a string in you context. You don’t want to output result but just have it in your hand.

Continue reading »

May 17

json_encode(): Invalid UTF-8 sequence in argument and SLIM

Yesterday i stumbled on this error : json_encode(): Invalid UTF-8 sequence in argument . Searching on the net doesn’t resolve the issue but as usual gives me some other point of view to find the solution. Environment I’m using Slim Framework and a Mysqli connection to retrieve data from a MySQL Database, then i want to …

Continue reading »

Mar 09

Order_status_id = 0 in OpenCart

If you look deep inside OpenCart Db you can find order_status table. In it you find these fields: order_status_id : used by OpenCart in order table to indicate the status of the order, like “Pending”, “Complete”, “Canceled” language_id : if you have only English installed you have “1” as solely value name : the translation …

Continue reading »

Feb 18

Security header is not valid – Opencart

If you get in trouble with paypal configuration( Paypal Express Checkout) in an Open Cart e-commerce website; the solution is outside Open Cart. It’s not a mistype configuration of API username, password and signature but just try to renew your paypal credential or fix it at paypal account website

Feb 18

.htaccess: Option FollowSymlinks not allowed here Open Cart

One of the first thing you want to enable is mod_rewrite to allow SEO friendly URL. When doing it with Open Cart you can encounter this error : [error]Option FollowSymlinks not allowed here[/error] We found this error with Open Cart e-commerce system and Virtualmin, web hosting panel. Solution to this problem is as easy as …

Continue reading »

Sep 24

Eclipse dies on start up org.eclipse.mylyn.tasks.ui

Having a bug that blocks Eclipse from starting is frustating. Solving it is emotional. Bug is : Eclipse doesn’t start and dies showing org.eclipse.mylyn.tasks.ui. Searching Google i found an article talking about this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=388170 . Reading it we found the solution to our problem and the cause of the bug. Cause seems to be …

Continue reading »

Aug 08

A temporal type must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar

Error in title “A temporal type must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar” cab be found during development using JPA and Google App Engine. To solve this issue you have to correctly annotate the field oh type Date so: @Entity @Table(name=”studio”) public class StudioDb {     @Id     @GeneratedValue(strategy …

Continue reading »

Older posts «