Ever since I uploaded some pictures to some of my albums, I notice that when I logout of coppermine, the following appears on the very top of the page:
Notice: unserialize(): Error at offset 0 of 7 bytes in /usr/home/sites/www.lmtchatonline.com/web/gallery/bridge/phpbb.inc.php on line 90
I even upgraded to 1.3.1, same thing happens. It goes way if I log back in.
test account (non-admin) for http://www.lmtchatonline.com/gallery/ please...
Post your version of coppermine as well.
GauGau
login: lunatic
pass: blah123
Running 1.3.1
Thanks.
Your error shows an issue in the phpbb bridge. However, the link to your forum is incorrect (http://www.lmtchatonline.com/gallery/www.lmtchatonline.com/phpbb). Maybe an issue with your integration with phpbb. Various other links are also incorrect (example: http://www.lmtchatonline.com/gallery/www.lmtchatonline.com/gallery).
I logged into your site with your test user, and didn't see any errors while I was there.
Yeah it was just those two links that were incorrect. Fixed now. Thanks. ;D
I've never had problems with my phpBB integration. This error started appearing when I uploaded a lot of pics to one of my albums.
This is my line 90 in the phpBB bridge file:
$sessiondata = unserialize($HTTP_COOKIE_VARS[PHPBB_COOKIE_PREFIX . '_data']);
I had the same problem before I upgraded to 1.3.1.
I confirm kegobeer's report: no error for me when looging out.
But, looking at your source code, I noticed something fishy in the theme you're using. Did you make sure to have applied the changes mentioned in docs/theme.htm when upgrading from cpg1.2.x to cpg1.3.x?
GauGau
it says for applying changes to custom themes from 1.2.x to 1.3.x. I originally had 1.3.0 and upgraded to 1.3.1. So that wouldn't be the issue. I still read over it to verify that the changes were made though.
Why is it that when I click on Memberlist while logged in as a regular user it'll direct me to:
http://www.lmtchatonline.com/phpBB/admin/index.php? It of course says I don't have access to make administration changes. But when I'm logged in as an admin is simply directs me to /phpBB.
For the memberlist problem...
Either some variable isn't getting set, or the link the phpbb bridge file sets isn't right. I don't use phpBB, so I can't verify if this will fix it, but open up /bridge/phpbb.inc, and change
function udb_edit_users()
{
$target = 'admin/index.php';
udb_redirect($target);
}
to
function udb_edit_users()
{
$target = 'memberlist.php';
udb_redirect($target);
}
For the original problem...
If you switch to the default Coppermine theme, do you still have the unserialize error?
This is a known issue: you can't use the memberlist when using a bridged coppermine. Disable displaying the memberlist in coppermine config.
GauGau
The memberlist works fine with the SMF bridge, although I didn't know until today as I leave the memberlist option switched off in Coppermine's admin.
I changed the theme to classic, and am still getting the same error message on top when I logout (it goes away when I log back in). I tried the lunatic reg. user account i posted before, and the same thing happens as when I logout of my admin account.
I think I found another bug. When I click on the Show/hide info button when browsing a picture, then click on my name (indicating that I uploaded that pic), it shows my profile. But on my profile picture it seems to be showing the latest pic that I uploaded. Same problem is happening to another admin.
OK it appears this problem is only happening on my computer. Maybe a browser issue..something messed up with my cookies? I can logout with no errors on my roommate's computer. Thanks guys.
Quote from: erroneus on July 19, 2004, 08:28:03 AM
I think I found another bug. When I click on the Show/hide info button when browsing a picture, then click on my name (indicating that I uploaded that pic), it shows my profile. But on my profile picture it seems to be showing the latest pic that I uploaded. Same problem is happening to another admin.
This is not a bug, it is expected behaviour. There will be 1 or 2 pics in your profile (coppermine, not BB) depending on if you have uploaded pics and posted comments. The left one is the last uploaded, and if clicked on, links to a meta album containing all pics you have uploaded.
The right one goes to all pics you have commented on.
Note, these profile meta albums respect permissions, so they do not show pics the viewer is not allowed to see.
Oh so when a visitor clicks on my profile they wont see the pic I last uploaded? I don't want someone to see it and think I'm a girl or something if the pic I last uploaded was a girl's pic, you know? Since the picture is simply displayed and no text around it describing what it is. It'll automatically make people assume that it's a picture of me.
It will always be the last uploaded pic.
There is a mod somewhere to add the text 'last uploaded pic', and that has been incorporated into the next version.
to make it clear to users that the pic shows the last uploaded or last commented pic, not an avatar of you, edit profile.php and find $lastcom = '<td width="50%" valign="top" align="center">'
. '<a href="thumbnails.php?album=lastcomby&uid=' . $uid . '">'
. $lastcom
. '</a><br />';
Replace it with $lastcom = '<td width="50%" valign="top" align="center">'
. '<a href="thumbnails.php?album=lastcomby&uid=' . $uid . '">'
. '<span class="thumb_title">Last comment by ' . $user_data['user_name'] . '<br /></span>'
. $lastcom
. '</a><br />';
Then, find $user_thumb = '<td width="50%" valign="top" align="center">'
. '<a href="thumbnails.php?album=lastupby&uid=' . $uid . '">'
. $user_thumb
. '</a></td>';
and replace with $user_thumb = '<td width="50%" valign="top" align="center">'
. '<a href="thumbnails.php?album=lastupby&uid=' . $uid . '">'
. '<span class="thumb_title">Last uploaded file by ' . $user_data['user_name'] . '<br /></span>'
. $user_thumb
. '</a></td>';
This should do the trick (the code I posted will be part of cpg1.4.0 which is still under development).
GauGau
Nice thanks. ;D
Quote from: erroneus on July 19, 2004, 08:33:10 AM
OK it appears this problem is only happening on my computer. Maybe a browser issue..something messed up with my cookies? I can logout with no errors on my roommate's computer. Thanks guys.
I am having the same exact issue -- on my computer I don't get the problem but on other users computers they started seeing the problem after we start to upload images.
Any find on this one??
Case re-opened. I'm still having the same problem with my computer, haven't yet figured out what it could be!
Is this problem solved now? ???
I tried to fiind out solution to same kind of problem with no success. I have bridged phpbb 2.0.11 with cpg, and this problem came out when updating cpg 1.2 to 1.3.2. Phpbb 2.0.11 worked fine with cpg 1.2.
When I log in to cpg it redirects fine to gallery and shows that im logged in, but when I then click some link it kicks me out and shows error
"Notice: unserialize(): Error at offset 0 of 92 bytes in /home/customers/perho/public_html/kuvagalleria/bridge/phpbb.inc.php on line 90"
at the top of the page.
My gallery is at [removed]
My board at [removed]
you can test it with
login: test
passwd: test
(Board is in Finnish, so login=Käyttäjätunnus and passwd=Salasana :) )
I got the problem with Firefox 1, Opera 7.51, and IE 6 sp2
Versioncheck saved as html:
[removed]
Thanks a lot!
Make sure you run at least php4.3.10 and the most recent version of the zend optimizer, as there is a security flaw in PHP related to the serialization commands. Search the board for "Santy", or google for it.
Joachim
Quote from: GauGau on January 07, 2005, 10:30:17 AM
Make sure you run at least php4.3.10 and the most recent version of the zend optimizer, as there is a security flaw in PHP related to the serialization commands. Search the board for "Santy", or google for it.
Server has PHP Version 4.3.10 and in 2.0.11 keeps Santy out as I know. But any suggestions or solution to my problem?
What version of the Zend Optimizer (ZO) do you have?
Joachim
Quote from: GauGau on January 07, 2005, 11:51:51 AM
What version of the Zend Optimizer (ZO) do you have?
Server has only "Zend Extension 20021010", no Zend Optimizer, checked from phpinfo().
Because solution to problem not found I took back in use use working 1.2 from backup. If someone wants to still see the error message, I keep 1.3.2 temporary up at [removed] (unfortunately I have to now use Finnish language and customised theme).
Hopefully somebody founds someday solution to this problem, until that i keep using old version.
Solved! :)
There seems to be incorrect information on documentation, there is written that:
5.3 Integration steps
5.3.1 Check your bbs settings
"If you are using phpBB 2, go to the admin control panel and check that "Cookie domain" corresponds to your domain, "Cookie name" is "phpbb2mysql" and "Cookie path" is "/". "
If I get it right this means that phpbb and cpg cookie name must be same, and yes that worked fine like that with 1.2 but in 1.3.2 those must be different! Working fine now when those are changed to different names.
It says:
QuoteImportant: the cookie names of your bbs and coppermine must not be the same - they must differ!
Quote from: Streamer on January 07, 2005, 08:56:28 PMIf I get it right this means that phpbb and cpg cookie name must be same
no, you got this wrong.
Quote from: Streamer on January 07, 2005, 08:56:28 PMand yes that worked fine like that with 1.2 but in 1.3.2 those must be different!
This has been the same with all versions of coppermine, none of them allowed you to have the same cookie name for your bbs and coppermine (just because this is the basic concept of cookies), so in fact your posting is a bit inadequate that says it used to be the same with the cpg1.2.x install. The cookie names must always
differ, that's what the documentation says. If your cpg1.2 install used to work, you must have had different cookie names - it wouldn't have worked if they were the same.
Glad you were able to fix this for yourself, but you drew the wrong conclusions ;).
Joachim
Okey, I got it wrong, im stupid :)