akirafreak / phppi

Automatically exported from code.google.com/p/phppi
GNU General Public License v3.0
0 stars 0 forks source link

Help please - Problem seeing photos! #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.After the instalation i can't see any photos

What is the expected output? What do you see instead?

The only thing that apears in the site is that 2 folders with 1 point and other 
with 2 points (see the attach)

What version of the product are you using? On what operating system?
phppi-1.0.0-rc.zip . My operating system is Ubuntu (see the attach phpinfo().)

Original issue reported on code.google.com by pedpatri...@gmail.com on 5 Apr 2011 at 11:46

Attachments:

GoogleCodeExporter commented 9 years ago
I believe this has to do with the way you uploaded your files to your server. I 
had this issue during development. 

Re-upload the following in ascii format instead of binary (there should be an 
option to change this in your ftp program. Or if possible upload in another 
manner such as a web based file manager.

file_blacklist.txt
file_types.txt
folder_blacklist.txt
footer.txt

Let me know if that works, otherwise there may be an issue.

Original comment by gorounreal on 6 Apr 2011 at 3:17

GoogleCodeExporter commented 9 years ago
Note, those files are in the phppi folder.

Original comment by gorounreal on 6 Apr 2011 at 3:18

GoogleCodeExporter commented 9 years ago
Closed issue due to no response.

Original comment by gorounreal on 11 May 2011 at 9:59

GoogleCodeExporter commented 9 years ago
I have the same problem.. don't know what to do :(
using xampp!

Original comment by thomaskl...@gmail.com on 30 May 2011 at 3:33

GoogleCodeExporter commented 9 years ago
Have you tried what was outlined above?

Original comment by gorounreal on 30 May 2011 at 9:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i'm using xampp.. i dont need a ftp program!
but i tried it with starting filezilla server and upload it via ftp programm in 
ASCII.. didnt work for me :(

any other solutions?

Original comment by thomaskl...@gmail.com on 2 Jun 2011 at 7:20

GoogleCodeExporter commented 9 years ago
Could you set ['advanced']['debug_mode'] in your settings.php file to true and 
let me know what is shown. Otherwise is it at all possible that I can check the 
site on the net?

Original comment by gorounreal on 3 Jun 2011 at 12:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
when i upload it to a server.. it's working.. but not with xampp!! :(

Original comment by thomaskl...@gmail.com on 8 Jun 2011 at 9:43

GoogleCodeExporter commented 9 years ago
With the thumbnails not working correctly when it's on a server that's because 
you've inserted the script into an existing site. PHPPI is not designed this 
way, it is designed to be run by itself. If you want to insert it into an 
existing layout you would need to create a template based on that layout (see 
phppi documentation).

For me to work out what's wrong with it on xampp I need you to provide a 
screenshot of the site running on xampp with ['advanced']['debug_mode'] set to 
true in the settings.php file.

Original comment by gorounreal on 9 Jun 2011 at 12:18

GoogleCodeExporter commented 9 years ago
debug_mode is set on true!
when i upload the whole site on a webserver, phppi is working fine
strange :S 

Original comment by thomaskl...@gmail.com on 15 Jun 2011 at 3:47

Attachments:

GoogleCodeExporter commented 9 years ago
It still looks like the folder blacklist isn't being read correctly. Maybe try 
deleting the folder_blacklist.txt file inside the phppi folder and creating a 
new text file yourself, add the following into the text file. Note that each 
entry is on a new line:

.
..
cache
thumbs
phppi

If this does not work i'll have to try to hard code the folder blacklist for 
those items.

Original comment by gorounreal on 15 Jun 2011 at 10:52

GoogleCodeExporter commented 9 years ago
i have tried it, but it doesnt work!
its strange because most of the images even don't appear, but 1 or 2 are 
working :S

Original comment by thomaskl...@gmail.com on 16 Jun 2011 at 11:47

GoogleCodeExporter commented 9 years ago
I can confirm this too. Platform: Debian Squeeze with PHP 5.3.3. Zip copied 
directly to server, and unzipped there (so no ftp ascii/binary-things here). 
Shows only ".", "..", and one subdir I created. Doesn't show images in subdir 
though.

Enabling debugmode doesn't give any info.

Original comment by mle...@gmail.com on 10 Jul 2011 at 5:07

GoogleCodeExporter commented 9 years ago
You may want to try deleting the cache folder (if it exists) from your folders. 
What you're seeing may be a cached result.

If you're still getting . and .. then try deleting folder_blacklist.txt, 
file_blacklist.txt and file_types.txt. Then create the text files yourself on 
the server (don't extract them from the zip file) in the same folder with the 
same names. Copy the contents or write the contents into those text files and 
see if that works.

Original comment by gorounreal on 11 Jul 2011 at 12:14

GoogleCodeExporter commented 9 years ago
I am seeing the same issue on a windows 2008 R2 machine. 

Original comment by clanca...@gmail.com on 26 Jul 2011 at 7:42

GoogleCodeExporter commented 9 years ago
on xampp, the issue is still there.. nothing helps :D

Original comment by thomaskl...@gmail.com on 27 Sep 2011 at 5:36

GoogleCodeExporter commented 9 years ago
I could verify this issue and fix it. The author actually gave the right hint. 
Even if you do not upload with ftp, but unzip the zip file under a UNIXoid 
operating system, the provided .txt files will have windows line endings. Check 
with hexdump -C *.txt and you will find the telltale 0d 0a combination. Use a 
tool like fromdos from Debian/Ubuntu package tofrodos to convert the files to 
Unix-style ASCII files with only 0a as line terminator and it magically all 
works again...

Original comment by malte.co...@gmail.com on 30 Sep 2011 at 11:03

GoogleCodeExporter commented 9 years ago
BTW, a good bug fix probably would be to ignore the various line ending styles 
when reading in the files. I'm not sure whether there is a good 
platform-independant way to do this in PHP; I'm not very up-to-date on PHP 
coding these days.

Original comment by malte.co...@gmail.com on 30 Sep 2011 at 11:04

GoogleCodeExporter commented 9 years ago
Thanks for the info, i'll look into doing it another way as well as trying out 
xampp just in case there are further issues.

Original comment by gorounreal on 1 Oct 2011 at 1:26

GoogleCodeExporter commented 9 years ago
It doesn't work in XAMPP but works on servers. I think it has something to do 
with cache because when you open the cache.xml the paths have \ and / instead 
of just /. I think the script get's confused because it's running on a virtual 
server while it saves on a local drive, hence the \/ problems. At least that's 
what I think.

Original comment by Mat.Mark...@gmail.com on 4 Oct 2011 at 11:55

GoogleCodeExporter commented 9 years ago
Thanks for your input, once I get a chance to install xampp and try it out i'm 
sure it will be a quick fix.

Original comment by gorounreal on 4 Oct 2011 at 2:00

GoogleCodeExporter commented 9 years ago
No problem, I was searching for an image gallery and this one is the simplest 
and the best I could find. I went through dozens of jQuery plugins that didn't 
suite my needs when I realised why not just go for a PHP one since that is a 
language I understand. The fact it doesn't work in XAMPP for now is a mild 
discomfort since I tested it on a test server.

Original comment by Mat.Mark...@gmail.com on 4 Oct 2011 at 6:03

GoogleCodeExporter commented 9 years ago
Just checked it out with XAMPP on Windows XP, had no problems. Did notice the 
varying slashes (as expected) but there appeared to be no problems. I've since 
updated PHPPI to 1.0.2. I've added a new debug_show_all setting which might 
help in working out what the difference is between my install of XAMPP and the 
ones that aren't working. If you could enable that setting and post the results 
it would be much appreciated.

Original comment by gorounreal on 16 Oct 2011 at 10:14

GoogleCodeExporter commented 9 years ago
And by the way, to those having issues with the blacklist files i've now 
changed them to comma delimited instead of a new line.

Original comment by gorounreal on 16 Oct 2011 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by gorounreal on 1 Apr 2012 at 10:37