PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old April 2nd, 2007, 06:33 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Posts: 9
Problems with permissions and vba-integration

Hi!

Ive just recently installed PhotoPost with vb3 integration on my forum ( www.autoprat.no ).
I have created a few categories, and set permission for users. All registered users, and admins are allowed to post pictures.
The problem is:


If i open the gallery when logged on as a normal user, the "upload photos" button is missing.
If i open the gallery with an administrator user i can click the "upload" button, but get the message "Sorry, you don't have permission to upload photos. ".

What can i do to solve this? Do i have to configure permissions from vbulletin administration to ?


Also i have a few other questions regarding vbA (im using vbAdvanced on my board).
I would like to integrate Photopost with VBA and have tried to enter the same code in the index.php , showmember.php etc, that
i use on my other forum pages, but this does not load the page inside of the main-page:
define('VBA_PORTAL', true);
define('VBA_PAGE', 'autohoved');
Steelbelted is offline   Reply With Quote
Old April 2nd, 2007, 10:21 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
You can discuss vbadvanced mods etc in the code hacking forums. I can not tell you how they make things appear or not appear on external pages. I do beleive they have a hack on there site which explains how to use vbadvanced on external pages which use the vb header system. You might try placing that line in our header-inc.php file which is the one that pulls the vb header system but who knows since I do not use their product. I use vbportal

As far as our product permissions in admin => edit usergroups is where you set permissions for the users and if you do that then you should be fine.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 3rd, 2007, 03:43 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Posts: 9
Hi!

After setting the correct permissions in the PhotoPost administration page, and checking the filepermissions on the server im now able to perform (some) uploads.
The problem is that i cannot always upload attachments (about 1/3 of the times i try, even if its the same image-file). One of the errors i get when i try to upload are:


Example1: Trying to upload a file, "manta_foran2.jpg", which is a 2,45KB .jpg file

- In the top of the page i get the message: "Warning: Division by zero in /galleri/image-inc.php on line 295"
- In the center of the page i get the message "Sorry, this image type () is not supported yet. "

Example2: Trying to upload a file "000_0034.JPG" which is a 686KB .jpg file
- I get a 500 internal server error "The server encountered an internal error or misconfiguration and was unable to complete your request"
Then i pressed "back" in my browser, and tried to resubmit and get the same message as in Example1.

Example3: Trying to upload a file, "cars_logo.gif" which is a 120bytes .GIF file
- Everything seems ok, and the image upload is processed, but instead of adding this file, i find the file from Example2

Example4: Trying to upload the same image as in Example 3.
-Now i only get an errormessage in the center of the page: "The file you uploaded was not an acceptable format.: cars_logo.gif "


Example5: Trying to upload the file: ferrari-l.jpg (which i downloaded from: http://www.meganet.com/challenges/ferrari/ferrari-l.jpg)
- I get a 500 internal server error "The server encountered an internal error or misconfiguration and was unable to complete your request."
- I then pressed "Back" in my browser, and pressed the "Process" button, and the image was uploaded without any errormessages....
- The only problem now, is that the description-text from this image was added to both this image, and the image from Example2..
- I then closed my browser, cleared all cookies and visited the www.autoprat.no/forum/galleri page again, and now i find that the file is uploaded.

Example6: Created a new gallery using a standard, registered user and tried to upload a picture.
- I got a 500 internal server error, but when i check the gallery the file is actually uploaded to the correct gallery..

- Also, after deleting all images and galleries the main page of www.autoprat.no/galleri says there is 3 pictures uploaded, but none are displayed (since i deleted them..)



These were all tests performed after eachother, and all of them were with errors. Is this a problem with PhotoPost, or with my server host?
I have not experienced any problems with vbulletin and image-uploading, only with PhotoPost.

Regards.
Petter

Last edited by Steelbelted; April 3rd, 2007 at 04:25 AM.
Steelbelted is offline   Reply With Quote
Old April 3rd, 2007, 08:59 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Possibly server or more likely install problems

You need to check your permissions are correct meaning the uploads and data directories at every level is 777.

Are you sure these are valid images in the correct format? error 500 is simple your using GD2 I take it and this thread should help

http://www.photopost.com/forum/showp...45&postcount=2
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 4th, 2007, 03:17 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Posts: 9
Thanks for your reply!

I switched from GD2 to ImageMagic, checked the permissions (both upload, data and all subdirectories below these are 777 )
I also added the "memory limit" to the pp-inc.php file. Here is an output from the file:

----
<?php


//////////////////////////// COPYRIGHT NOTICE //////////////////////////////
// This script is part of PhotoPost PHP, a software application by //
// All Enthusiast, Inc. Use of any kind of part or all of this //
// script or modification of this script requires a license from All //
// Enthusiast, Inc. Use or modification of this script without a license //
// constitutes Software Piracy and will result in legal action from All //
// Enthusiast, Inc. All rights reserved. //
// http://www.photopost.com legal@photopost.com //
// Developer: Michael Pierce (http://www.mdpnet.com) //
// //
// PhotoPost Copyright 2007, All Enthusiast, Inc. //
////////////////////////////////////////////////////////////////////////////

error_reporting (E_ALL ^ E_NOTICE);
ini_set("memory_limit", "60M");

if ( VB3_INTEGRATION == "off" )
{
----

I still get a lot of "internal server error" messages when trying to upload the pictures, but now it seems like they are uploaded anyway.. Not sure why the
server gives these messages.. I have restriced file size to 1024KB and

i have also added the following text to the .htaccess in the /forum/galleri folder to ensure its not the Apache Security problem
i read about in some other posts here:

-----
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
----

If you would like to take a look at the installation i can PM/email you ftp/admin details ?

Regards.
Pettter
Steelbelted is offline   Reply With Quote
Old April 4th, 2007, 10:53 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Is this windows or linux?

Data and uploads need to be 777 at every level

If you can upload certain files then you must try and diagnose what size files are giving you issues.

Link a phpinfo file here
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 10th, 2007, 01:57 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Posts: 9
Quote:
Originally Posted by Chuck S View Post
Is this windows or linux?

Data and uploads need to be 777 at every level

If you can upload certain files then you must try and diagnose what size files are giving you issues.

Link a phpinfo file here
Hi!

I`ve checked the permissions and they seem correct. I dont have any problems uploading files now (any size) but i almost always recieve an internal server error (even though the files are uploaded to the gallery..)
Steelbelted is offline   Reply With Quote
Old April 10th, 2007, 12:06 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Has to do with your php setup and server file restrictions no doubt but without more info here I dont see anything to suggest other than what we have previously noted.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 18th, 2007, 07:05 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2007
Posts: 9
Quote:
Originally Posted by Chuck S View Post
Has to do with your php setup and server file restrictions no doubt but without more info here I dont see anything to suggest other than what we have previously noted.
Thanks for your reply!

I contacted my webhost to find out whats going on, and they said i had give too much permission to the files/folders.. What permission should the .PHP files / folders have?
Steelbelted is offline   Reply With Quote
Old April 18th, 2007, 08:48 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Problems with permissions and vba-integration

All I can state is in my reply here. This has nothing to do with the core photopost php files it is all about directory permissions and then your PHP on the server crapping out which is what I think is happening which is why I linked the thread about how to give PHP more memory

If you require further assistance you can place a test login so we can try to upload here
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird permissions problems vonedaddy Photopost Pro How Do I...? 3 November 16th, 2006 03:13 PM
Problems with permissions, login + more finn snor Photopost Pro How Do I...? 9 May 26th, 2006 12:23 PM
Combining vba links with vba gallery? Ramses Before You Buy 1 September 5th, 2005 05:13 PM
vb integration problems youradultworld Photopost Pro Installation & Upgrades 5 November 15th, 2004 03:07 PM


All times are GMT -5. The time now is 11:47 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0