R428 :: Bilderupload klappt... aber keine Bilder wählbar!

Alle installationsbezogenen Probleme hier posten. Dies sollte die erste Anlaufstelle bei Problemen sein.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by juergen »

flip-flop wrote:Das steckt wahrscheinlich in der neuen Datei include/inc_lib/helper.image.php

@chmod($this->full_dst_path, FILE_WRITE_MODE);
:idea:
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by juergen »

Das sieht danach aus, dass die Konstante "FILE_WRITE_MODE" nicht gesetzt ist.
User avatar
kukki
Posts: 1707
Joined: Mon 7. Feb 2005, 20:02
Location: Berlin Köpenick
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by kukki »

Und nun .... muß OG noch einmal ran :?:
Lieber arm dran als Arm ab!

meine historische Website: Jagdgeschwader 300 1.9.34-R554
kukki's SpIeLwIeSe V.1.9.33 R553 responsive
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by juergen »

Yihaaaa

We did it

mach mal in den helper.image.php

Code: Select all

 define("FILE_WRITE_MODE", 0777 );
Nur mal so zum testen, dann seht ihr wie es wäre wenn :D

Also der Abfang des files sähe dann so aus :

include/inc_lib/helper.image.php

Code: Select all

<?php
/*************************************************************************************
   Copyright notice
   
   (c) 2002-2012 Oliver Georgi <oliver@phpwcms.de> // All rights reserved.
 
   This script is part of PHPWCMS. The PHPWCMS web content management system is
   free software; you can redistribute it and/or modify it under the terms of
   the GNU General Public License as published by the Free Software Foundation;
   either version 2 of the License, or (at your option) any later version.
  
   The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
   A copy is found in the textfile GPL.txt and important notices to the license 
   from the author is found in LICENSE.txt distributed with these scripts.
  
   This script is distributed in the hope that it will be useful, but WITHOUT ANY 
   WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 
   This file incorporates work covered by the following copyright and  
   license notice:

      Copyright (c) 2008 - 2012, EllisLab, Inc. (http://ellislab.com/)
 
      Parts of this source file is subject to the Open Software License (OSL 3.0).
      It is also available through the world wide web at this URL:
	  http://opensource.org/licenses/OSL-3.0
   
   This copyright notice MUST APPEAR in all copies of the script!

*************************************************************************************/

// ----------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) {
   die("You Cannot Access This Script Directly, Have a Nice Day.");
}
// ----------------------------------------------------------------

define("FILE_WRITE_MODE", 0777 );
/**
 * Image Manipulation class
 *
 * Taken from CodeIgniter and adopted for use in phpwcms.
 *

Beweis ;)

Image
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by juergen »

0666 reicht natürlich auch, 0777 ist da Quatsch

Code: Select all

define("FILE_WRITE_MODE", 0644 );
User avatar
kukki
Posts: 1707
Joined: Mon 7. Feb 2005, 20:02
Location: Berlin Köpenick
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by kukki »

Nix, funktioniert nicht. Allerdings habe ich gerade ein SVN Release neu aufgespielt, OG hat einiges bearbeitet.
ABER trotzdem, es funktioniert nicht.
Lieber arm dran als Arm ab!

meine historische Website: Jagdgeschwader 300 1.9.34-R554
kukki's SpIeLwIeSe V.1.9.33 R553 responsive
User avatar
kukki
Posts: 1707
Joined: Mon 7. Feb 2005, 20:02
Location: Berlin Köpenick
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by kukki »

flip-flop wrote:

Code: Select all

define("FILE_WRITE_MODE", 0644 );
GENAU, so funktioniert es jezt!
Lieber arm dran als Arm ab!

meine historische Website: Jagdgeschwader 300 1.9.34-R554
kukki's SpIeLwIeSe V.1.9.33 R553 responsive
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by update »

kukki wrote::?: :?: falscher User / falsche Gruppe :?: :?:
verstehe Bahnhof, wenn nur ein User mit Adminrechten angemeldet und auch nur eingetragen ist ....
User bzw Gruppe auf dem Server; Alle Programme und Scripte laufen unter bestimmten (Server)Usern, oft ist das der User www oder wwwrun (unter dem zB der Webserver läuft) usw usf. Lies mal was über Rechte und User auf Linuxsystemen.....
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by juergen »

0666 umgeht dieses Problem dann ja, so dass der Server die files "anfassen" kann.
User avatar
Oliver Georgi
Site Admin
Posts: 9889
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by Oliver Georgi »

ja eigentlich 0644 ausreichend, aber manchmal schreibt der Apache und man käme nicht mehr heran. Ist behoben.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
kukki
Posts: 1707
Joined: Mon 7. Feb 2005, 20:02
Location: Berlin Köpenick
Contact:

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by kukki »

Danke Oliver, alles im grünen Bereich :!: :D
Lieber arm dran als Arm ab!

meine historische Website: Jagdgeschwader 300 1.9.34-R554
kukki's SpIeLwIeSe V.1.9.33 R553 responsive
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by Jensensen »

Das war bei HostEurope gelegentlich ein Problem, sicherlich aus Sicherheitsaspekten, insbesondere, wenn man per FTP ins filearchive oder content/images zugreift.

@kukki: wurde aber vor einigen wochen angekündigt. Infos dazu unter:
vgl. allgemein: http://faq.hosteurope.de/index.php?cpid=16595
vgl. konkret "Umstellung Rechtekonzept": http://faq.hosteurope.de/index.php?cpid=16911

Nach der Umstellung sind FTP-User und WebServer innerhalb einer Gruppe mit gleichen Rechten wodurch das "nobody"-Problem beseitigt ist. Damit ist 0644 [default] perfekt funktionsfähig.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
krailing
Posts: 119
Joined: Fri 20. Apr 2007, 11:17
Location: Schaffhausen/CH

Re: R428 :: Bilderupload klappt... aber keine Bilder wählbar

Post by krailing »

Ahoi
Bin hier gelandet, weil ich nämlich dasselbe Problem habe. Seit gestern eine frische 435 installiert und die Bilder lassen sich zwar hochladen, aber im Bildbrowser ist nichts zu sehen.
Den vorgeschlagenen Eintrag hab ich probiert, bringt aber nix. Stehe nun an.
Gruss
Tom

[SOLVED] Ein DB-Update wurde nicht ausgeführt, jetzt alles prima!
Post Reply