FCKeditor - Resources Browser: zeigt inhalt nicht an

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

cue
Posts: 6
Joined: Fri Dec 07, 2007 10:59 am

FCKeditor - Resources Browser: zeigt inhalt nicht an

Post by cue »

Hallo!

Wir verwenden seit 3 tagen PMF und ich bin ganz angetan, echt tolle arbeit!

Respekt an Thorsten!

----

Eine Kleinigkeit funktioniert aber leider noch nicht bei uns im FCKeditor - Resources Browser:
* Bild hochladen funktioniert, landet im "/images/Image" ordner
* Verzeichniss erstellen klappt auch

Das Problem: der Resource Brwoser zeigt nichts an. ich hab selber bissi geschnüffelt im code, bin aber nicht dahinter gekommen was falsch ist.

Screenshot des Resource Browsers:
Image

Wie man erkennt sind Frame "Spalte 1, Zeile 2" und "Spalte 2, Zeile 2" leer. JavaSkript Code sollte die Verzeichnisse nachladen, tut es aber nicht.

Hatte jemand das Problem? Kennt das wer?

System Information

phpMyFAQ Version
phpMyFAQ 2.0.4
Server Software
Microsoft-IIS/6.0
PHP Version
PHP 5.2.4
Register Globals
on
Safe Mode
off
Open Basedir
off
Database Server
Mysql
Database Client Version
4.1.7
Database Server Version
5.0.20-nt
Webserver Interface
ISAPI
PHP Extensions
bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, ISAPI, curl, gd, gettext, gmp, imap, ldap, mcrypt, mhash, mime_magic, mssql, mysql, openssl, shmop, soap, tidy, xmlrpc, xsl, zip
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ich guck mir das mal an.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
cue
Posts: 6
Joined: Fri Dec 07, 2007 10:59 am

Post by cue »

danke schön!
cue
Posts: 6
Joined: Fri Dec 07, 2007 10:59 am

Post by cue »

Hab jetzt den Zugriff mit IE getestet, der sagt:

Problem in:
Zeile: 125
Zeichen: 2
Fehler: Objekt erforderlich
Code: 0
URL: http://intern.agoint/..../admin/editor/ ... slist.html
----------------------------------------------------------------------------------------
101:function OpenFolder( folderPath )
102:{
103: sActiveFolder = folderPath ;
104:
105: if ( ! bIsLoaded )
106: {
107: if ( ! iIntervalId )
108: iIntervalId = window.setInterval( CheckLoaded, 100 ) ;
109: return ;
110: }
111:
112: // Change the style for the select row (to show the opened folder).
113: for ( var sFolderPath in oListManager.TableRows )
114: {
115: oListManager.TableRows[ sFolderPath ].className =
116: ( sFolderPath == folderPath ? 'FolderListCurrentFolder' : 'FolderListFolder' ) ;
117: }
118:
119: // Set the current folder in all frames.
120: window.parent.frames['frmActualFolder'].SetCurrentFolder( oConnector.ResourceType, folderPath ) ;
121: window.parent.frames['frmCreateFolder'].SetCurrentFolder( oConnector.ResourceType, folderPath ) ;
122: window.parent.frames['frmUpload'].SetCurrentFolder( oConnector.ResourceType, folderPath ) ;
123:
124: // Load the resources list for this folder.
125: window.parent.frames['frmResourcesList'].LoadResources( oConnector.ResourceType, folderPath ) ;
126: }
cue
Posts: 6
Joined: Fri Dec 07, 2007 10:59 am

Post by cue »

mir fällt auf, das ich mich beim suchen des fehlers geirrt habe... hab in der falsche datei gesucht, der richtige code mit dem fehler:

Code: Select all

function GetFoldersAndFilesCallBack( fckXml )
{
	if ( oConnector.CheckError( fckXml ) != 0 )
		return ;

	// Get the current folder path.
	var oNode = fckXml.SelectSingleNode( 'Connector/CurrentFolder' ) ;
	var sCurrentFolderPath	= oNode.attributes.getNamedItem('path').value ;
	var sCurrentFolderUrl	= oNode.attributes.getNamedItem('url').value ;

	// Add the Folders.	
	var oNodes = fckXml.SelectNodes( 'Connector/Folders/Folder' ) ;
	for ( var i = 0 ; i < oNodes.length ; i++ )
	{
		var sFolderName = oNodes[i].attributes.getNamedItem('name').value ;
		oListManager.AddFolder( sFolderName, sCurrentFolderPath + sFolderName + "/" ) ;
	}
	
	// Add the Files.	
	var oNodes = fckXml.SelectNodes( 'Connector/Files/File' ) ;
	for ( var i = 0 ; i < oNodes.length ; i++ )
	{
		var sFileName = oNodes[i].attributes.getNamedItem('name').value ;
		var sFileSize = oNodes[i].attributes.getNamedItem('size').value ;
		oListManager.AddFile( sFileName, sCurrentFolderUrl + sFileName, sFileSize ) ;
	}
}
Zeile 125 ist diese:

Code: Select all

	var sCurrentFolderPath	= oNode.attributes.getNamedItem('path').value ;
cue
Posts: 6
Joined: Fri Dec 07, 2007 10:59 am

Post by cue »

ok, konnte es jetzt selber lösen ^^

folgendes ist passiert:
der Error kam, weil kein XML an den FCKBrowser übergeben wurde.

ich habe heute die RSS Feeds getestet und bemerkt, das diese auch nciht funzen, weil am anfang des XML Dokuments ein Leerzeichen stand. Dieses war in der /inc/data.php am ende nach "?>" ein "?> " also.

habe das entfernt und alles was mit XML zu tun hat funzt wieder (alle RSS-Feeds + FCK Browser!)
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ah, cool. Danke!

Ich bau den Fix mit ein.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

dann suche mal nach Whitespaces... die dürfte es aber nicht mehr geben. Nachvollziehen kann ich deinen Fehler jedenfalls nicht... :-(

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

siehst du etwas in der Quellcode-Ansicht bei den RSS-Feeds im Firefox?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

vor dem <?xml ist ein Leerzeichen... mal sehen, woher das kommt. Daran liegt es!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

das interessante ist auch, dass es hier auf Windows und MacOS X mit Apache nicht passiert...

Ich suche gerade...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

versuche das mal:

Öffne die Datei /feed/news/rss.php und entferne die folgende Zeile 88

Code: Select all

header("Content-Length: ".strlen($rss));
und ändere Zeile 89 in

Code: Select all

print trim($rss);
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ich glaube, ich habe es!

Schau mal in die inc/Link.php ganz am Ende, da steht ein "?>". Lösch das einfach mal weg!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

schau mal in die inc/data.php und entferne auch da das ?> am Ende...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ja... ich suche weiter, wo das herkommen kann...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply