In Progress

Error with plugin after upgrade to VPS hosting

Wordpress drawing plugin was working as intended before hosting account was upgraded from a pro hosting account to VPS on inMotionhosting.com. The plugin is supposed to capture images on the page, create a thumbnail, then onclick paint over the html 5 canvas with that image.

The before image included shows the thumbnail as it should appear. It's missing in the after image. Debugging error shown in the last image.

Relevant code from the plugin:

//From [login to view URL]

function drawblogDoGetImgData(imgsrc){

var image_choices = [login to view URL]("drawblog_image_choices");

[login to view URL]({url:"<?php echo plugins_url();?>/drawblog/[login to view URL]",

type:"post",

data:"wpdir=<?php echo content_url();?>&imgsrc="+imgsrc,

success:function(data){

img_data = [login to view URL](data);

var newImage = [login to view URL]("IMG");

var tn_ratio = (50/img_data[2]);

[login to view URL] = img_data[0];

[login to view URL] = 50;

[login to view URL] = [login to view URL](img_data[1] * tn_ratio);

var newwidth;

var newheight;

var hratio = wratio = 1;

if (img_data[1] > <?php echo $width;?>){

newwidth = <?php echo $width;?>;

wratio = <?php echo $width;?>/img_data[1];

} else newwidth = img_data[1];

if (img_data[2] > <?php echo $height;?>){

newheight = <?php echo $height;?>;

hratio = <?php echo $height;?>/img_data[2];

} else newheight = img_data[2];

if (hratio > wratio){

newheight = img_data[2] * wratio;

} else if (wratio > hratio){

newwidth = img_data[1] * hratio;

}

[login to view URL] = function() {

drawblogPasteImg([login to view URL], newwidth, newheight);

};

[login to view URL] = "pointer";

[login to view URL] = "1px solid #000000";

[login to view URL](newImage);

}

});

}

//From [login to view URL]

<?php

$img = $_POST['imgsrc'];

$wpdir = $_POST['wpdir'];

$domain_bits = parse_url($img);

$domain = $domain_bits['host'];

$filename = $domain_bits['path'];

if ($domain == $_SERVER['SERVER_NAME']) {

$file = $img;

} else {

$file = $wpdir.'/plugins/drawblog/[login to view URL]'.urlencode($img);

}

$img_info = getimagesize($img);

if ($img_info !== false){

echo json_encode(array($file,$img_info[0], $img_info[1]));

} else echo '';

//From [login to view URL]

<?php

$img = urldecode($_GET['img']);

$img_info = getimagesize($img);

if (($img_info !== false) && (in_array($img_info[2], array(IMAGETYPE_JPG, IMAGETYPE_JPEG, IMAGETYPE_JPEG2000, IMAGETYPE_PNG, IMAGETYPE_GIF)))){

header("Content-type: ".$img_info[2]);

readfile($img);

}

Skills: AJAX, Javascript, MySQL, PHP, WordPress

See more: how to fix 500 internal server error, 500 internal server error wordpress wp-admin, is currently unable to handle this request. http error 500 wordpress, 500 internal server error wordpress, update failed internal server error plugin update, http error 500 wordpress wp-admin, 503 service unavailable wordpress admin, 500 internal server error wordpress godaddy, ukraine hosting wordpress, cpanel upgrade perl easy apache working, wordpress working ie7, fatal error call undefined function is_admin wordpress, working account expire component joomla, wordpress internal server error plugin installphp, vps hosting sale, password user live jasmin working account, wordpress plugin upgrade, plugin messages board post wordpress, plugin wordpress user account, plugin wordpress create account

About the Employer:
( 2 reviews ) Lafayette, United States

Project ID: #17515007

22 freelancers are bidding on average $128 for this job

sapotacorp

Dear bjaxdesign! Thanks for giving me the opportunity to discuss your project I'm #1 WordPress Vietnam in here.. Our WordPress's projects: [login to view URL] Our latest United States's projects: h More

$132 USD in 3 days
(981 Reviews)
8.6
bestworkontime9

Hi, I am interested to go with this project as I have gone through with your requirement that you need to solve plugin error in the website. Well, I have checked plugin code. Please send me website and plugin Ur More

$188 USD in 3 days
(258 Reviews)
7.7
GetReal

Hi, Let me fix the plugin for you, ready to start now and have it done for you as soon as possible..thanks!

$100 USD in 0 days
(721 Reviews)
7.9
iglobalvn

Hi sir, I have read your requirement carefully. I am ready to fix plugin error and i will provide within or before 5 hours . If you wanna confirm me, please check my work history and portfolio kindly. Then, you c More

$100 USD in 1 day
(105 Reviews)
7.4
AMsolutions1

Hi, I think there is issue with server configuration so i need old and new server access then i can tell you exact issue and resolve that. Looking forward to hear from you. Thanks

$122 USD in 2 days
(101 Reviews)
6.9
abugosia

Hello, I'm Abu Gosia. I'm interesting your project very well. I m quite well experienced in these jobs. Let's go ahead with me. Thanks

$155 USD in 3 days
(137 Reviews)
6.7
Dekin3

Hello, Plugin issue WordPress? looks easy to me. Kindly provide me with more information so that we discuss on it.

$50 USD in 3 days
(203 Reviews)
6.1
Lavlu

Hi, I am highly qualified Web Designer and Developer having 12+ years experienced in Wordpress and its all plugins. I have see your reference website and attachment files. I can easily solve this problem and do it a More

$300 USD in 3 days
(32 Reviews)
6.8
skchybd

Hi, About your project: I can solve the problem of plugin As I have 11 years experience on wordpress and 8 years in magento which is more complex than wordpress, wordpress became easy to me. About my experience an More

$50 USD in 3 days
(66 Reviews)
5.3
pakistansolution

Hello! friend. I read your requirement about a project. I can check error with plugin after upgrade to VPS hosting. I will provide you with a better service than others. Do you have work with me lets chat I will reply More

$161 USD in 3 days
(54 Reviews)
5.4
sitwebsolution

To The Hiring Manager, Hello, Just read your project details. I have already worked on this kind of project. I have a proposal for you.I am a well-skilled developer and I also have More

$130 USD in 3 days
(28 Reviews)
5.0
arjun366333

Hello, Ready to start the work to fix Error with plugin, We can discuss more over chat, Thanks Regard Arjun S.

$100 USD in 3 days
(19 Reviews)
4.5
rslavovwork

Hello Sir/Madam, we have big experience with wordpress and php in general. We can start wqork on your project immediately. We never ask for upfront payment you need to pay only when we finish our job and you like it. F More

$50 USD in 1 day
(35 Reviews)
4.4
kreativemacslllw

Hello , Hope you are doing well. I am a web developer with more than 8 years of [login to view URL] to your project description, please have a look on our Understanding which are given below: ================ Un More

$166 USD in 3 days
(16 Reviews)
4.3
thebollysl

Hi sir! I just need your error_log file if you are cPanel, otherwise, it will found in the log folder on your server, you can ask hosting provider to find the error log location. That Way I can analyze what is go More

$110 USD in 3 days
(9 Reviews)
4.1
rk5737388

Dear Sir. I've checked the job description carefully and feeling confident to handle the project. I will deliver all things fast and perfect. Happy to discuss our possible collaboration.I will check the error in plugin More

$88 USD in 3 days
(21 Reviews)
3.7
arvizon

Hello , I have 8 years of experience in Wordpress,Shopify, Laravel, Magneto,etc. I have an outstanding experience with creating custom plugins. I can easily do this project according to your requirements. Please More

$300 USD in 3 days
(2 Reviews)
0.3
bhavishakoyani

Hello, can you give me some more detail like VPS server version and php version . what PHP version have you use before upgrad VPS after VPS . also i will fix this issue without any info . let me know if this job st More

$111 USD in 3 days
(0 Reviews)
0.0
$133 USD in 3 days
(0 Reviews)
0.0
punamkatoch

Hi Managers , As per your job post I have experience in this type of jobs and I will change whatever you want in modern ,professional and clean designs . I am working as web designer and developer from the last More

$155 USD in 3 days
(0 Reviews)
0.0