🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.golive.dynamic.content
4 messages
4 total messages Started by amc1 Tue, 17 Aug 2004 18:38
PROBLEMS WITH BLOBPHOTOS UPLOAD --need some help plz
#150
Author: amc1
Date: Tue, 17 Aug 2004 18:38
29 lines
2138 bytes
hi folks,

i�ve edit all files, add them into my golive site and create a blobphotos table with phpMyadmin.

1. >> get an error when i want add a new text entry to the database.

< fieldset>< legend>Last Updated< /legend>
< ERROR Number="2" Description="Error: "date() [<a href='http://www.php.net/function.date <http://www.php.net/function.date>'>function.date</a>]: Unexpected error" on line 1211 of h:\projects\php\dev_projects\blobs\blobs ordner\blobs\config\include\utils.runtime6.php."/ >

ok, i remove the last updated fieldset from the pageitems.php so i can add text entrys to the database.

in the next step to add photo to the database i get error message on the pagesuccess site.

< ERROR Number="8" Description="Error: "Undefined variable: datasrc" on line 20 of h:\projects\php\dev_projects\blobs\blobs ordner\blobs\config\include\photofunctions.php."/ >

work on windows with the preconfigured webserver. i�ve make update to php 4.3.1 so the register_globals setting is off.

my other projects works whithout any problems after the php update........

=========================================================================
2. >>
i�ve upload the blobphotos files to my production server (linux) to test it there.
there i have no problems.
I can make new text entrys and the photo upload and resize function works fine but the resized blobphotos images have only 256 colors....

would be nice if anybody can help because i�m not the php expert :-))

BEATZ & GREETZ
CLIVE
Re: PROBLEMS WITH BLOBPHOTOS UPLOAD --need some help plz
#153
Author: Jim_Tom_Polk
Date: Wed, 18 Aug 2004 04:19
28 lines
2299 bytes
1. >> get an error when i want add a new text entry to the database.

I'm going to guess it is a minor error in your code. Check to see that the database is having something entered into the last_mod field. If it is, then make sure that you have the field set to the correct value. Double check that GoLive has not altered a value, such as 'NOW()' - since we are adding foeign code, it continually tries to make the foreign code fit into what it thinks is right.

      in the next step to add photo to the database i get error message on the
      pagesuccess site.




This one should be simple. Go to the top of the pages in question. When you make changes, GoLive has a tendency to remove the top include to the mysql_runtime6.php file.

      resized blobphotos images have only 256 colors....




 <http://us4.php.net/manual/en/function.imagecreatefromjpeg.php>

Go down into the discussion. In PHP 4.3.0 and above, this is a known problem. You are going to have to work with the code a bit, but there is a hint on what to do by:

office at 4point-webdesign dot com

-- it is about 1/2 of the way down the page.

None of the sites I have that use this are running a 4.3.0+ version of PHP and none of the current sites I've built on systems running on version of PHP 4.3.0+ have used this, so I've not tinkered with the code - I just have a note on what the problem is and where to find the solution when that day comes.

An that day is the end of next month when I move 3 of the sites I have that use this to a system running PHP 4.3.2!
Re: PROBLEMS WITH BLOBPHOTOS UPLOAD --need some help plz
#159
Author: amc1
Date: Fri, 20 Aug 2004 13:06
31 lines
2293 bytes
Ola Jim,

thanx 4 the quick help!

The 256 colors problem i�ve fixed.

The date/time function works on linux without any probs. On windows i get this error only when i�ll make new entrys to the database. I think windows have a problem with the date 1970 which was show on new entrys. I�ve put the "last update field" in a hide content container
and set it to hide if the the field "title" is empty :-) If u hv another workaround please let me know.

On my windows machine i still have the problem when i want add photos to the database

      ERROR Number="8" Description="Error: "Undefined variable: datasrc" >on
      line 20 of blobs\config\include\photofunctions.php.




I have check the code but i�m think it�s ok because the same files work on my linux producton server. The different is that on linux they have php4.3.0 with register_globals=on ....
I�ve windows and php 4.3.1 with register_globals=off....

Maybe there is something to edit in the blobfunction or photofunction file. I had the same problem with the picture upload tutorial from the adobe site. I�ve found some workarounds here on this board and edit some lines in the include/pictureupload.php

I have replace all existing $HTTP_POST_FILES by $_FILES and all $HTTP_POST_VARS by $_POST.
I�ve also edit some lines like this $_position with $_POST['_position']....

and now it works with register_globals on and off setting........

I�m new on create pages with dynamic content and php so i�m not sure if the problem is the same as in the pictureupload include but i�ll check it out this weekend.

BEATZ & GREETZ from germany
Clive
Re: PROBLEMS WITH BLOBPHOTOS UPLOAD --need some help plz
#164
Author: Jim_Tom_Polk
Date: Sat, 21 Aug 2004 13:32
13 lines
1570 bytes

      I have replace all existing $HTTP_POST_FILES by $_FILES and all $HTTP_POST_VARS
      by $_POST.




Yes, you have to do that. Luckily it is just a bunch of search and replaces in most instances when going from one type of server to another with the register globals set properly, i.e. off.

I am probably going to be pretty hopeless when it comes with Windows. I have a development environment installed on my XP machine (MySQL, Apache 2, PHP, Zend Debugger) but I almost never use it: I do my work directly on either production or staging/test servers.

I wrote the blobupload specifically so that I, and others, would not have to mess around with filesystem permissions with file uploads: but there is that "/tmp" file that I reference, so that may be causing some problems: Windows has the Apache temp file for file uploads and also sessions some where else.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads