![]() |
Images Upload But Errors Given New install using VB3 and GD2. After submitting pictures to upload the following errors come back: Warning: getimagesize(C:/WebSites/SamsWeb/photopost/uploads/1/43-Convertible1.jpg) [function.getimagesize]: failed to open stream: No such file or directory in WebSites\SamsWeb\photopost\image-inc.php on line 215 Warning: Division by zero in WebSites\SamsWeb\photopost\image-inc.php on line 254 Warning: getimagesize(C:/WebSites/SamsWeb/photopost/uploads/1/43-Convertible1.jpg) [function.getimagesize]: failed to open stream: No such file or directory in WebSites\SamsWeb\photopost\image-inc.php on line 77 Warning: unlink(C:/WebSites/SamsWeb/photopost/uploads/1/43-Convertible1.jpg) [function.unlink]: No such file or directory in WebSites\SamsWeb\photopost\image-inc.php on line 87 At the bottom there is a message... Sorry, this image type () is not supported yet. Sometimes when I go back I realize that the images actually are there. Sometimes they are not. I know it is probably something dumb on my part and I wanted to figure it out on my own but don't think I can. Thanks in advance for any help. |
By the way, the images are in the upload folder when I look there. For example, /photopost/uploads/1 contains the .jpg I tried to upload. |
Your data and uploads directories are not set to 777 per the installation instructions. Basically whats happening is the image is not being copied into the uploads directory hense the program is failing. |
Thanks Much! Changing the permissions on those two folders did the trick. Now if I can just figure out why I'm getting a blank page on my forum idex whenever I try to make the changes for VB3 Integration, I will be in business. I can't wait to get all this in place... so close! |
Make sure to edit the include files with proper info if in separate databases etc. The instructions to apply the photo stuff on the vb index are stickied in the documentations forum |
downloaded the VB3 Photopost Integration Mod and made all the changes. However, when I go to my forum page it just brings up a blank page now. I uploaded the /PhotoPost/inc_photopost.php with database modifications as below: $url_path = "http://www.samsmarine.com/photopost"; // URL of your photo album $data_dir = "http://www.samsmarine.com/photopost/data/" ; // URL of your photo dir where those jpeg stored (with / at end) $full_path = "C:\Websites\SamWeb\photopost\data"; // Full path to your data directory I am not using a seperate database and I left the $pp_headers = "yes"; I made the changes to the forumhome template. If I comment out the include('./photopost/inc_photopost.php'); in the /forums/index.php the old forum page loads fine... but with it in there, I just get a blank page. |
There should be no need if your running 4.8.5 and above to download any hack as support for vb3 index photo block is now in the code distribution. |
OK... now I see, what I downloaded was for earlier versions. I am running VB3 and PP 5.01 so I went back and undid everything. The problem is, how do I get the photopost stuff to show in the index page of VB??? I have VB enhanced features turned on and my VB headers and footers are working perfectly when I go to the photopost index page. However, I want the featured photos and categories to show in my VB index page. What am I missing? Here is what I have in the config-int.php file. We need to know the server paths to both your vB installation and your PhotoPost installation $vbpath = "C:\WebSites\SamsWeb\forums"; $pppath = "C:\WebSites\SamsWeb\photopost"; // We need the URL path to your PhotoPost and vb installation $url_path = "http://www.samsmarine.com/photopost"; $vb_urlpath = "http://www.samsmarine.com/forums"; // The URL of your photo dir where your images are stored (with / at end) $data_dir = "http://www.samsmarine.com/photopost/data/"; // If your PhotoPost tables have a prefix, put it here // Example: // pp_ = "pp_"; $pp_db_prefix = "pp_"; // If you use the mobile phone integration, set this variable to the CatID for the gallery define( MOBILE_CAT, -1 ); //------------------------------------- vB3 -----------------------------------------// // VB3_INTEGRATION is for using vB3 headers/footers and styles // VB3_ENHANCEDINT is for Enhanced vB3 Integration (using vB3 elements in PhotoPost) // requires that VB3_INTEGRATION also be set to 'on' // VB3_COMMWYSIWYG is for turning on the WYSIWYG interface on the Post A Comment page // if you set this to 'off' then only the standard input box will appear // // Set to 'on' to enable specific integrations define(VB3_INTEGRATION, 'on'); define(VB3_ENHANCEDINT, 'on'); define(VB3_COMMWYSIWYG, 'on'); |
|
photopost integration on VB index page OK - I know this is dirt simple and I have everything else working perfectly with both VB and Photopost. But for some reason I am still getting a blank page when I go to my forum index page at www.samsmarine.com/forums/index.php after I include the two lines in the forum index.php and make the changes to the forum header template. Here is my index.php file after making the changes... // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); require_once('./includes/functions_bigthree.php'); require_once('./includes/functions_forumlist.php'); include('./photopost/inc_features.php'); include('./photopost/inc_photopost.php'); Here is my config-int.php... // We need to know the server paths to both your vB installation and your PhotoPost installation $vbpath = "C:\WebSites\SamsWeb\forums"; $pppath = "C:\WebSites\SamsWeb\photopost"; // We need the URL path to your PhotoPost and vb installation $url_path = "http://www.samsmarine.com/photopost"; $vb_urlpath = "http://www.samsmarine.com/forums"; // The URL of your photo dir where your images are stored (with / at end) $data_dir = "http://www.samsmarine.com/photopost/data/"; // If your PhotoPost tables have a prefix, put it here // Example: // pp_ = "pp_"; $pp_db_prefix = "pp_"; // If you use the mobile phone integration, set this variable to the CatID for the gallery define( MOBILE_CAT, -1 ); //------------------------------------- vB3 -----------------------------------------// // VB3_INTEGRATION is for using vB3 headers/footers and styles // VB3_ENHANCEDINT is for Enhanced vB3 Integration (using vB3 elements in PhotoPost) // requires that VB3_INTEGRATION also be set to 'on' // VB3_COMMWYSIWYG is for turning on the WYSIWYG interface on the Post A Comment page // if you set this to 'off' then only the standard input box will appear // // Set to 'on' to enable specific integrations define(VB3_INTEGRATION, 'on'); define(VB3_ENHANCEDINT, 'on'); define(VB3_COMMWYSIWYG, 'on'); Here is the inc_photopost.php... require "config-int.php"; // If you have placed PhotoPost into a seperate database, you will need to // uncomment these lines to connect to the PhotoPost database. It is suggested // that you install PP into the same database as vB for better performance. // // If you use the same userid/password to access both databases, you don't need to // uncomment the mysql_connect - this is only if you require different ids to access // the PhotoPost database. // //$link = mysql_connect ("localhost", "dbuserid", "dbuserpassword") or die('I cannot connect to the database.'); //mysql_select_db ("pp_database")or die("Could not select photopost database"); // Sets the number of subcats to show on your list (1 is the default) $showlevels = 1; // Set to 1 if you do not want to show the Members Gallery on the index $showmg = 0; // If you want to add table headers, set to yes; set to know if you plan to put the categories // into another table $pp_headers = "yes"; Here's where I changed the forum home template.. $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <!-- no cache headers --> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> <meta http-equiv="Cache-Control" content="no-cache" /> <!-- end no cache headers --> <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title> $headinclude </head> <body> $header $navbar $photopostfeature <!-- main --> $photopostcats <br /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <if condition="$show['guest']"> <!-- guest welcome message --> <tr> <td class="tcat" colspan="<.......etc,etc Here is a link to my phpinfo.. http://www.samsmarine.com/forums/info.php I can't for the life of me figure out what I'm doing wrong here. Again, using VB3 with PP 5.01 on a Windows server. Thanks again in advance! |
Your path to the files are wrong. The information in our post is an example not an absolute. You need to place the proper path in there. ./ is for a directory in your forums directory. Since your photopost is not there it is back one level include('./photopost/inc_features.php'); include('./photopost/inc_photopost.php'); would instead be include('../photopost/inc_features.php'); include('../photopost/inc_photopost.php'); |
Argggg.... I can't believe I didn't see that. Works like a charm! Thanks so much for your help! |
| All times are GMT -5. The time now is 03:12 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0