Page 1 of 1
I can only insert entries as draft?
Posted: Thu Mar 29, 2007 8:13 pm
by jeffk
I went through all the install stuff and sucessfully got the server running. It all seems good. I use postgresql and made a db for serendipity.
I seem to be running currently
"Powered by Serendipity 1.1.1 and PHP 4.3.11"
but I had the same problem when I tried with the install of 1.1.2.
But I can only make entries as draft, if I try to insert as publish I see the message
"Serendipity is now saving your entry, creating trackbacks and performing possible XML-RPC calls. This may take a while..."
Which soulds good except I do not know what XML-RPC calls are. and it happens quite quickly. But then when I look at my site or click show entries I do not see any entry. If I am inserting with the publish setting of publish that is.
If I insert as a draft and then open the database and chnage t to f in the isdrat column in the serendipity_entries table, then I see the entry fine in both the page and the list entries link.
I even seem to be able to add media and then add it using my insert entry page.
Have I configured something incorrectly? I ran into this twice on two seperate installs? Surely this has come up before
I am using postgres
7.4.7
I did see the allow publish checkbox
Posted: Thu Mar 29, 2007 8:38 pm
by jeffk
I have selected allow publish.
I went back and tried to disable a bunch of other stuff but in doing so I got the message
Your browser did not sent a valid HTTP-Referrer string. This may be caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The Action you requested could not be completed.
I wonder if it has something to do with my being behind a corporate firewall.
It still does not work
Posted: Thu Mar 29, 2007 8:39 pm
by jeffk
I think I forgot to say that
It appears that my problem is session cookies in PHP
Posted: Thu Mar 29, 2007 10:43 pm
by jeffk
I dont know how to change my php and apache to handle it though
This is the contents on my php.ini file under session. I only changed domain to be the domain i normally use.
[Session]
; Handler used to store/retrieve data.
session.save_handler = files
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /var/lib/php/session
; Whether to use cookies.
session.use_cookies = 1
; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1
; Name of the session (used as cookie name).
session.name = PHPSESSID
; Initialize session on request startup.
session.auto_start = 0
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0
; The path for which the cookie is valid.
session.cookie_path = /
; The domain for which the cookie is valid.
session.cookie_domain = prod.nelvana.com
; Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php
; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.
session.gc_probability = 1
session.gc_divisor = 1000
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled. PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.
session.bug_compat_42 = 0
session.bug_compat_warn = 1
; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =
; How many bytes to read from the file.
session.entropy_length = 0
; Specified here to create the session id.
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
; Set to {nocache,private,public,} to determine HTTP caching aspects.
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache
; Document expires after n minutes.
session.cache_expire = 180
; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
; to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
; in publically accessible computer.
; - User may access your site with the same session ID
; always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0
; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs. If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
Also Confusing
Posted: Thu Mar 29, 2007 10:54 pm
by jeffk
I added the noautodiscovery line to my
"serendipity_config_local.inc.php" file and I still get the traceback messages
$serendipity['versionInstalled'] = '1.1.1';
$serendipity['dbName'] = 'nelvanablog';
$serendipity['dbPrefix'] = 'serendipity_';
$serendipity['dbHost'] = 'dbserver';
$serendipity['dbUser'] = 'postgres';
$serendipity['dbPass'] = 'wygdwtcfy';
$serendipity['dbType'] = 'postgres';
$serendipity['dbPersistent'] = false;
$serendipity['noautodiscovery'] = true;
Woohoo Got It
Posted: Thu Mar 29, 2007 11:05 pm
by jeffk
This is it now
; Handler used to store/retrieve data.
session.save_handler = files
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /tmp
; Whether to use cookies.
session.use_cookies = 1
; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1
; Name of the session (used as cookie name).
session.name = PHPSESSID
; Initialize session on request startup.
session.auto_start = 0
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0
; The path for which the cookie is valid.
session.cookie_path = /
; The domain for which the cookie is valid.
session.cookie_domain = prod.nelvana.com
; Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php
; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.
session.gc_probability = 1
session.gc_divisor = 1000
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled. PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.
session.bug_compat_42 = 0
session.bug_compat_warn = 1
; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
;session.referer_check =
; How many bytes to read from the file.
session.entropy_length = 0
; Specified here to create the session id.
session.entropy_file = anyfile
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
; Set to {nocache,private,public,} to determine HTTP caching aspects.
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache
; Document expires after n minutes.
session.cache_expire = 180
; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
; to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
; in publically accessible computer.
; - User may access your site with the same session ID
; always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0
; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs. If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
Re: Woohoo Got It
Posted: Fri Mar 30, 2007 1:04 pm
by garvinhicking
Hi!
Did you install s9y on the domain "prod.nelvana.com"?
How do you try to publish an entry? You change the top dropdown next to the entry title and change it from "Draft" to "Publish", right?
If you check your postgresql database, what column type is the 'isdraft' column there? I know that some pgsql installations might not properly handle that field as 'boolean' if no boolean-table handler is installed. I'm more a mysql guy, so I can't tell you specifics.
The "Is performing trackbacks and XML-RPC pings" message also appears even if you have noautodiscovery set - only that no pings are performed there, though.
What message do you get below that text? Do you get "Entry saved"?
Which event plugins do you have installed?
Regards,
Garvin