Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Gd2 error Easypopulate

Gd2 error Easypopulate

Views: 2,017

Results 1 to 10 of 10
31 Aug 2012, 8:17 PM
#1
webmart avatar

webmart

New Zenner

Join Date:
Nov 2011
Posts:
34
Plugin Contributions:
0

Gd2 error Easypopulate

Hi, i've migrated some zencart site to another new server just implemented, everything work well but i've an absurd error on Easypopulate, see attached image:

Attachment 11054

I've recompiled many times all PHP libraries (cause probably GD2 error on the strange message) but GD Libraries are working.
Any help?

31 Aug 2012, 8:20 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Gd2 error Easypopulate

That doesn't look like a GD2 error at all. Besides, I didn't think EP ever used GD for anything anyway.
Looks more like something is dumping out (partial) contents of a PHP file to the screen ... and that PHP file merely happens to mention GD2. I'd be investigating why it's outputting the PHP code in plain text instead.

31 Aug 2012, 9:08 PM
#3
webmart avatar

webmart

New Zenner

Join Date:
Nov 2011
Posts:
34
Plugin Contributions:
0

Re: Gd2 error Easypopulate

Thanks for your reply, here it is the code:

. www.evoluted.net Layout: Manny . www.tenka.co.uk REQUIREMENTS ============ This script requires PHP and GD2 if you wish to use the thumbnail functionality. INSTRUCTIONS ============ 1) Unzip all files 2) Edit this file, making sure everything is setup as required. 3) Upload to server 4) ?????? 5) Profit! CONFIGURATION ============= Edit the variables in this section to make the script work as you require. Start Directory - To list the files contained within the current directory enter '.', otherwise enter the path to the directory you wish to list. The path must be relative to the current directory. */ $startdir = DIR_FS_CATALOG . $tempdir; /* Show Thumbnails? - Set to true if you wish to use the scripts auto-thumbnail generation capabilities. This requires that GD2 is installed. */ $showthumbnails = true; /* Show Directories - Do you want to make subdirectories available? If not set this to false */ $showdirs = true; /* Force downloads - Do you want to force people to download the files rather than viewing them in their browser? */ $forcedownloads = false; /* Hide Files - If you wish to hide certain files or directories then enter their details here. The values entered are matched against the file/directory names. If any part of the name matches what is entered below then it is now shown. */ $hide = array( 'dlf', 'index.php', 'Thumbs', '.htaccess', '.htpasswd', 'fileList.php' ); /* Show index files - if an index file is found in a directory to you want to display that rather than the listing output from this script? */ $displayindex = false; /* Allow uploads? - If enabled users will be able to upload files to any viewable directory. You should really only enable this if the area this script is in is already password protected. */ $allowuploads = false; /* Overwrite files - If a user uploads a file with the same name as an existing file do you want the existing file to be overwritten? */ $overwrite = false; /* Index files - The follow array contains all the index files that will be used if $displayindex (above) is set to true. Feel free to add, delete or alter these */ $indexfiles = array ( 'index.html', 'index.htm', 'default.htm', 'default.html' ); /* File Icons - If you want to add your own special file icons use this section below. Each entry relates to the extension of the given file, in the form => . These files must be located within the dlf directory. */ $filetypes = array ( 'png' => 'jpg.gif', 'jpeg' => 'jpg.gif', 'bmp' => 'jpg.gif', 'jpg' => 'jpg.gif', 'gif' => 'gif.gif', 'zip' => 'archive.png', 'rar' => 'archive.png', 'exe' => 'exe.gif', 'setup' => 'setup.gif', 'txt' => 'text.png', 'htm' => 'html.gif', 'html' => 'html.gif', 'fla' => 'fla.gif', 'swf' => 'swf.gif', 'xls' => 'xls.gif', 'doc' => 'doc.gif', 'sig' => 'sig.gif', 'fh10' => 'fh10.gif', 'pdf' => 'pdf.gif', 'psd' => 'psd.gif', 'rm' => 'real.gif', 'mpg' => 'video.gif', 'mpeg' => 'video.gif', 'mov' => 'video2.gif', 'avi' => 'video.gif', 'eps' => 'eps.gif', 'gz' => 'archive.png', 'asc' => 'sig.gif', ); /* That's it! You are now ready to upload this script to the server. Only edit what is below this line if you are sure that you know what you are doing! */ error_reporting(0); if(!function_exists('imagecreatetruecolor')) $showthumbnails = false; $leadon = $startdir; if($leadon=='.') $leadon = ''; if((substr($leadon, -1, 1)!='/') && $leadon!='') $leadon = $leadon . '/'; $startdir = $leadon; if($_GET['dir']) { //check this is okay. if(substr($_GET['dir'], -1, 1)!='/') { $_GET['dir'] = $_GET['dir'] . '/'; } $dirok = true; $dirnames = split('/', $_GET['dir']); for($di=0; $di
File
Size
Last Modified
'.$files[$i].''; $thumb2 = ' onmouseover="o('.$i.', \''.urlencode($leadon . $files[$i]).'\');" onmouseout="f('.$i.');"'; } if($filetypes[$ext]) { $icon = $filetypes[$ext]; } $filename = $files[$i]; if(strlen($filename)>43) { $filename = substr($files[$i], 0, 40) . '...'; } $fileurl = $leadon . $files[$i]; if(!$forcedownloads) { $fileurl = $_SESSION['PHP_SELF'] . '?dir=' . urlencode($leadon) . '&download=' . urlencode($files[$i]); } $fileurl = "../".$tempdir.$files[$i]; ?>
> <?=$files[$i];?> KB
31 Aug 2012, 9:12 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Gd2 error Easypopulate

Right.

So, which file on your server actually contains that stuff you quoted?

And why is it getting output at all? Is there some PHP syntax error in that file? PHP code should be executed, not dumped to the browser/screen.

31 Aug 2012, 9:14 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Gd2 error Easypopulate

If this is indeed something specific to EP, then I'm surprised nobody else has mentioned it.

Granted, I haven't used EP in several years, so I'm not "up" on all the latest developments added in recent versions of the many EP variants.

Does EP now do thumbnail generation somehow? From what input source?

1 Sep 2012, 9:07 AM
#6
webmart avatar

webmart

New Zenner

Join Date:
Nov 2011
Posts:
34
Plugin Contributions:
0

Re: Gd2 error Easypopulate

I've also tried to downgrade php from5.3 to 5.2.

Nothing.

1 Sep 2012, 3:21 PM
#7
webmart avatar

webmart

New Zenner

Join Date:
Nov 2011
Posts:
34
Plugin Contributions:
0

Re: Gd2 error Easypopulate

I've tried downloading again a new one (but same version) of EP, also i've tried to upload files with two differents ftp client (filezilla and the integrated file manager under directadmin).
Nothing to do. :huh:

Also i've tried to update PHP from 5.2 to latest 5.3 on another server when EP work perfectly, work perfectly more. :laugh:

1 Sep 2012, 3:35 PM
#8
webmart avatar

webmart

New Zenner

Join Date:
Nov 2011
Posts:
34
Plugin Contributions:
0

Re: Gd2 error Easypopulate

SOLVED

in php.ini

short_open_tag = ON (was OFF)

Cause in the TempEP/fileList.php was used >? insterad of "classic" <?php

:P

1 Sep 2012, 5:11 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Gd2 error Easypopulate

Aha. Yes, that would cause problems. Always safest to never use short-open-tags in your code.

20 Sep 2012, 9:09 PM
#10
jagall avatar

jagall

Zen Follower

Join Date:
Mar 2011
Location:
Ireland
Posts:
286
Plugin Contributions:
0

Re: Gd2 error Easypopulate

Hi I am trying to install easy_populate_csv_for_zencart_v1.5 on my local server and I am getting the exact same error. I changed the phpl.ini where it says short_open_tag = ON (was OFF). no difference. I had upload the sql file anyway to get it appear in admin. However, I notice when I go into configuration and click on easy populate, the Super Orders Mod appears, its like the configuration does not recognise EP, very confused? :(