Administration Suite problem

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
kavo
Regular
Posts: 28
Joined: Tue Jan 16, 2007 4:02 pm

Administration Suite problem

Post by kavo »

hello,
i am starting to use Serendipity 1.0.4 and PHP 4.3.9 for my blog. today i was making some changes in settings, uf, and now when i logged in my administration suite, in the left of screen i have only Frontpage, Back to Weblog and Logout marks. where i lost others? damn, i can not to solve this problem.
can somebody help me?
many thanks.

cheers...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Administration Suite problem

Post by garvinhicking »

Hi!

You supposedly either removed yourself from all usergroups, or you enable the option "Right to publish entries: NO" which will effectively remove you from all access.

You will now have to use a tool like phpMyAdmin and execute this query:

Code: Select all

UPDATE serendipity_authors SET right_publish = 1
If that doesn't work, please report back here :)

Best 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/
kavo
Regular
Posts: 28
Joined: Tue Jan 16, 2007 4:02 pm

Post by kavo »

thank you garvin for answer.
i must change "Right to publish entries".

how i have to use that phpMyAdmin tool?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

If you don't have phpMyAdmin, then try to create a simple file called "fixright.php" in your serendipity directory with this code:

Code: Select all

include 'serendipity_config.inc.php';
serendipity_db_query("UPDATE {$serendipity['dbPrefix']}authors SET right_publish = 1");
Then you can call the URL via http://yourhost/fixright.php which should fix the right on its own, allowing you to properly relogin.

Best 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/
kavo
Regular
Posts: 28
Joined: Tue Jan 16, 2007 4:02 pm

Post by kavo »

you will be thinking of me that i am total fool, but...
this is my login screen

Code: Select all

http://kavo.mnml.nl/blog/serendipity_admin.php
in which directory i must create file? and how i add the code?
you mean like this?

Code: Select all

http://kavo.mnml.nl/blog/fixright.php
then i can not open the page.

again sorry for my darkness.
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

Create that file using Notepad or something. And don't we have to use <?php ... ?> ?

If you try to open the file and get your frontpage, you have to edit your .htaccess-file too:

Code: Select all

rewriteengine Off
kavo
Regular
Posts: 28
Joined: Tue Jan 16, 2007 4:02 pm

Post by kavo »

yes, i made the file fixright.php with that code in body of file.
but i dont know how to i add it to my serendipity directory :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Davy is right, change the script to read this:

Code: Select all

<?php
include 'serendipity_config.inc.php';
serendipity_db_query("UPDATE {$serendipity['dbPrefix']}authors SET right_publish = 1"); 
Then save it as "fixright.php" and upload it via FTP into your "blog" subdirectory. Then call http://kavo.mnml.nl/blog/fixright.php via your browser.

Best 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/
kavo
Regular
Posts: 28
Joined: Tue Jan 16, 2007 4:02 pm

Post by kavo »

i did it.
when i call

Code: Select all

http://kavo.mnml.nl/blog/fixright.php
its done and its all clear on the site :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

That's okay, the php script doesn't give any output! Did you check to relogin? It should hopefully work again?

If not, use this PHP script instead

Code: Select all

include 'serendipity_config.inc.php';
print_r(serendipity_db_query("UPDATE {$serendipity['dbPrefix']}authors SET right_publish = 1")); 

print_r(serendipity_db_query("SELECT * FROM {$serendipity['dbPrefix']}authors");
Then you should see some output, a listing of all available authors?

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/
kavo
Regular
Posts: 28
Joined: Tue Jan 16, 2007 4:02 pm

Post by kavo »

done, still dont works :(

i use this code

Code: Select all

include 'serendipity_config.inc.php'; 
print_r(serendipity_db_query("UPDATE {$serendipity['dbPrefix']}authors SET right_publish = 1")); 

print_r(serendipity_db_query("SELECT * FROM {$serendipity['dbPrefix']}authors"); 
i have to add "<?php" at the begining of code and "?>" at the end?
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

You should always use <?php and ?>, to go into PHP-mode and after that exit PHP. It's something like starting a script in HTML: <script type="blahblah">. If you don't use <?php and ?>, the page is not seen as PHP, and just sent to the browser.
kavo
Regular
Posts: 28
Joined: Tue Jan 16, 2007 4:02 pm

Post by kavo »

i did code this way:

Code: Select all

<?php include 'serendipity_config.inc.php'; 
print_r(serendipity_db_query("UPDATE {$serendipity['dbPrefix']}authors SET right_publish = 1")); 

print_r(serendipity_db_query("SELECT * FROM {$serendipity['dbPrefix']}authors"); ?>
then saved to blog folder via FTP

then i call from IE:

Code: Select all

http://kavo.mnml.nl/blog/fixright.php
when i logged in Administration Suite its all still the same, i can not do anything, just log off.
i feel feckless :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, that fixright.php file still seems faulty, I'm sorry. Please try this:

Code: Select all

<?php 
include 'serendipity_config.inc.php'; 
print_r(serendipity_db_query("UPDATE {$serendipity['dbPrefix']}authors SET right_publish = 1")); 

print_r(serendipity_db_query("SELECT * FROM {$serendipity['dbPrefix']}authors")); ?>
I'm sorry that I didn't post the right snippet; there was a PHP parse error, and your host does not show PHP errors, that's why you got a blank page :(

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/
kavo
Regular
Posts: 28
Joined: Tue Jan 16, 2007 4:02 pm

Post by kavo »

thank you for be patient with me :oops: . i changed the code. now i see this when i call fixright.php file:

Code: Select all

1Array ( [0] => Array ( [0] => Kavo [realname] => Kavo [1] => Kavo [username] => Kavo [2] => 9b9a31ab7f9b66c5c442ba0dff3db164 [password] => 9b9a31ab7f9b66c5c442ba0dff3db164 [3] => 1 [authorid] => 1 [4] => 1 [mail_comments] => 1 [5] => 1 [mail_trackbacks] => 1 [6] => ...... [email] => ...... [7] => 255 [userlevel] => 255 [8] => 1 [right_publish] => 1 ) ) 
but when i try to log in, i still have not rights for make New Entry to my blog and so.
Last edited by kavo on Fri Jan 26, 2007 1:25 pm, edited 1 time in total.
Post Reply