The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Bugs Spartacus: saving plugins under //plugins

Found a bug? Tell us!!
dilviel
Regular
 
Posts: 18
Joined: Thu Sep 03, 2009 10:01 pm

Postby dilviel » Fri Sep 25, 2009 6:23 pm

Hello again!

I'm experiencing problems with Spartacus. It lets me see the online plugins, the problem is that when I try to install plugins per Spartacus, it saves the plugin as "Fehler" and gives the following error message:

"Versuche URL serendipity_plugin_geotag.php?rev=1.9999 zu öffnen...
12650 bytes von obiger URL geladen. Speichere Inhalt als /home/fb09a/g91231/public_html/s9y//plugins/serendipity_event_geotag/serendipity_plugin_geotag.php...
Datei '/home/#####/######/public_html/s9y//plugins/serendipity_event_geotag' kann nicht geschrieben werden."

and further down it says:

"DEBUG: Plugin serendipity_event_geotag:43254e4bf1ba811de790bfaef2804c19 not an object: .
Input: Array ( [adminModule] => plugins [pluginPath] => serendipity_event_geotag [install_plugin] => serendipity_event_geotag [spartacus_fetch] => event [action] => [adminAction] => ) .

This error can happen if a plugin was not properly downloaded (check your plugins directory if the requested plugin was downloaded) or the inclusion of a file failed (permissions?)
Backtrace:
Installing plugin: Array ( [0] => serendipity_event_geotag [1] => [2] => event [3] => 0 [4] => serendipity_event_geotag )
INSERT INTO #######_plugins (name, sort_order, placement, authorid, path) values ('serendipity_event_geotag:43254e4bf1ba811de790bfaef2804c19', 13, 'event', '0', 'serendipity_event_geotag')
No valid path/filename found. Aborting.
Classname serendipity_event_geotag still does not exist. Aborting.
Loading plugin failed painfully. File not found?
No valid path/filename found. Aborting.
Classname serendipity_event_geotag still does not exist. Aborting."

How can it create a directory named "//"? Writing rights for "/plugins/" are given, but there is no "//plugin/", so I can't give any writing rights.
What to do?

Kind regards

User avatar
garvinhicking
Core Developer
 
Posts: 28944
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Sep 25, 2009 6:57 pm

Hi!

///////////plugins is the same like /plugins. So you should simply check the permissions of your "/plugins" directory, make sure they have PHP write permissions (use chmod 777 if you don'T know about permissions).

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

dilviel
Regular
 
Posts: 18
Joined: Thu Sep 03, 2009 10:01 pm

Postby dilviel » Fri Sep 25, 2009 7:08 pm

Thing is, I'm using a different platform now.

The server is the property of my firm, it uses a UNIX-system, as you might already have seen.
It also uses PHP 4.4.9 and, to be honest... I don't know jack shit about chmod 777, I wouldn't even know how to open a shell to get there, as I am in a different town right now.

I can manage read/write/execute permissions via an intern... program, if you so wish. "/plugins/" and the files/directories it contains have been given all three permissions and it still don't work.

Why?

Kind regards,
dilviel

User avatar
garvinhicking
Core Developer
 
Posts: 28944
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Sep 25, 2009 7:14 pm

Hi!

Oh, sorry - I didn't want to jump ahead of you. Also using FTP access you can assign a "chmod". Usual FTP clients offer you to set permissions through a right-click onto a directory.

"777" means writable for everyone and every user. You can make sure that it works with a simple script that you upload into the root of serendipity (where serendipity_config.inc.php is) with this content and a name like test.php:

Code: Select all
<?php
if (touch('plugins/test.txt')) {
echo "Touch succeeded.";
} else {
echo "Touch failed.";
}
?>


Then execute this script through the browser, http://yourblog/test.php and tell me what the output is!

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

dilviel
Regular
 
Posts: 18
Joined: Thu Sep 03, 2009 10:01 pm

Postby dilviel » Fri Sep 25, 2009 7:22 pm

Hm.
It says, "Touch succeeded."

It seems I'll never get a hang of this programming thing... *mumbles*

Kind regards,
dilviel
Last edited by dilviel on Fri Sep 25, 2009 7:29 pm, edited 1 time in total.

User avatar
garvinhicking
Core Developer
 
Posts: 28944
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Sep 25, 2009 7:27 pm

Hi!

That's okay! My script tries to write directly into the "plugins" directory, so if you execute it from within that folder, it tries to touch a file in plugins/plugins/ which doesn'T exist.

Please check if the "test.txt" file was created in /plugins (0 bytes)? Also please check if a serendipity_event_geotag directory exists in your installation? And if yes, which permissions does it have?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

dilviel
Regular
 
Posts: 18
Joined: Thu Sep 03, 2009 10:01 pm

Postby dilviel » Fri Sep 25, 2009 7:34 pm

Hi again,

the file was created. 0-byte-txt.

There is no folder serendipity_event_geotag though. :?

Kind regards,
dilviel

User avatar
garvinhicking
Core Developer
 
Posts: 28944
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Sep 25, 2009 7:37 pm

Hi!

Hm, okay. Can you tell me what your configuration options are for the spartacus plugin, how did you configure it? There might be a problem with that. Especially check if you entered any FTP details, and if so, remove them so that local filesystem access can be used.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

dilviel
Regular
 
Posts: 18
Joined: Thu Sep 03, 2009 10:01 pm

Postby dilviel » Fri Sep 25, 2009 7:43 pm

The configuration of my Spartacus:

--------------------
Enable the use of Spartacus for fetching plugins?
Ja
Enable the use of Spartacus for fetching themes?
Ja
Enable remote plugin version information
Nein
Secret key to Remote plugin version information
spartacus_remote
Datei/Mirror Speicherort (XML-Metadaten)
Netmirror.org
Datei/Mirror Speicherort (Downloads)
Netmirror.org
Eigene Mirror-Quelle

Eigentümer der heruntergeladenen Dateien

Zugriffsrechte der heruntergeladenen Dateien

Zugriffsrechte der heruntergeladenen Verzeichnisse

Use directory creating using ftp in safe_mode?
Ja
FTP server address

FTP username

FTP password

FTP serendipity directory
/#######/s9y
--------------------

Have I already said thank you for helping me? Thank you. :)

Kind regards,
dilviel

User avatar
garvinhicking
Core Developer
 
Posts: 28944
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Sep 25, 2009 7:57 pm

Hi!

Hm, okay, can you try if turning off the option "Use directory creating using ftp in safe_mode?" might help anything?

Also please check if in your templates_c directory you see any *.xml files?

(And you're welcome :) )

Regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

dilviel
Regular
 
Posts: 18
Joined: Thu Sep 03, 2009 10:01 pm

Postby dilviel » Fri Sep 25, 2009 8:03 pm

Hi again,

I turned off that option, then he deleted 3 .xml-files. In the "templates_c"-folder, there are only php-files, as far as I can see. Weird names... *g*

I also tried downloading the Geotag-plugin again - didn't work. Same error messages.
There also still is no folder serendipity_event_geotag.

Kind regards,
dilviel

User avatar
garvinhicking
Core Developer
 
Posts: 28944
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Sep 25, 2009 11:24 pm

Hi!

But after trying to download the geotag plugin again, there should be .xml files listed again?

I don't know what's happening, maybe the netmirror.org mirror could be done. Could you change the mirror location to SourceForge.net and see if it works with those?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

dilviel
Regular
 
Posts: 18
Joined: Thu Sep 03, 2009 10:01 pm

Postby dilviel » Fri Sep 25, 2009 11:36 pm

Hi again,

there is only a certain package_event_de.xml listed in templates_c.

I chose SourceForge.net and what I got is this:

----------------------
Die Daten des Spartacus-Speicherorts konnte nicht empfangen werden. Prüfe Verfügbarkeit der Quelle...
It was not possible to download the required files from the Spartacus repository, but the health of our repository was retrievable. This means your provider uses a content-based firewall and does not allow to fetch PHP code over the web by using mod_security or other reverse proxies. You either need to ask your provider to turn this off, or you cannot use the Spartacus plugin and need to download files manually.
Versuche URL ChangeLog?rev=1.9999 zu öffnen...
Die URL http://php-blog.cvs.sourceforge.net/*ch ... rev=1.9999 (IP 216.34.181.109) konnte nicht geöffnet werden. Möglicherweise existieren Server- oder Netzwerkprobleme.

(Der Mirror-Speicherort antwortet mit Fehler 400.)
Trying to use cURL library as fallback...
You are being redirected to /viewvc/*checkout*/php-blog/additional_plugins/serendipity_event_geotag/ChangeLog?revision=1.9999
cURL library returned a failure, too.

Die Daten des Spartacus-Speicherorts konnte nicht empfangen werden. Prüfe Verfügbarkeit der Quelle...
It was not possible to download the required files from the Spartacus repository, but the health of our repository was retrievable. This means your provider uses a content-based firewall and does not allow to fetch PHP code over the web by using mod_security or other reverse proxies. You either need to ask your provider to turn this off, or you cannot use the Spartacus plugin and need to download files manually.
Fehler: serendipity_event_geotag:faf3deb827b376a1e536d8b8b37609fa (serendipity_event_geotag)
DEBUG: Plugin serendipity_event_geotag:faf3deb827b376a1e536d8b8b37609fa not an object: .
Input: Array ( [adminModule] => plugins [pluginPath] => serendipity_event_geotag [install_plugin] => serendipity_event_geotag [spartacus_fetch] => event [action] => [adminAction] => ) .

This error can happen if a plugin was not properly downloaded (check your plugins directory if the requested plugin was downloaded) or the inclusion of a file failed (permissions?)
Backtrace:
Installing plugin: Array ( [0] => serendipity_event_geotag [1] => [2] => event [3] => 0 [4] => serendipity_event_geotag )
INSERT INTO vilnius_plugins (name, sort_order, placement, authorid, path) values ('serendipity_event_geotag:faf3deb827b376a1e536d8b8b37609fa', 17, 'event', '0', 'serendipity_event_geotag')
No valid path/filename found. Aborting.
Classname serendipity_event_geotag still does not exist. Aborting.
Loading plugin failed painfully. File not found?
No valid path/filename found. Aborting.
Classname serendipity_event_geotag still does not exist. Aborting.
----------------------

... it still don't work. *g*

Kind regards,
dilviel

User avatar
garvinhicking
Core Developer
 
Posts: 28944
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Sep 25, 2009 11:41 pm

Hi!

Okay, but at least now we know that downloads are possible, chmod is possible.

The only thing that remains is that your provider is using a firewall or apache mod_rewrite which disallows to fetch any remote PHP code due to security reasons.

You will need to download the plugin manually from http://spartacus.s9y.org/ and upload it to your webspace via FTP; you will sadly not be able to use Spartacus, unless your provider is willing to disable the firewall for you (which usually no provider does, if it's in place).

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

dilviel
Regular
 
Posts: 18
Joined: Thu Sep 03, 2009 10:01 pm

Postby dilviel » Fri Sep 25, 2009 11:55 pm

Hi,

well... now that I know the difficulties I can get on working. Downloading the plugins manually is ok, I can do with that.

Thanks for your fast help. :-)

Kind regards,
dilviel

Next


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests