Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: Rowdy on June 09, 2009, 10:22:44 PM

Title: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 09, 2009, 10:22:44 PM
Hi, I am using SMF2RC1-1 and installed the beta bridge according to directions. Everything is working fine except a couple things. I am getting hundreds of errors in the log like these every hour, looks like every page on the forum generates it. Can anyone help please?

Undefined offset: 152
File: /home/dannyreynolds/public_html/modules/mod_smf_login.php
Line: 211

8: Undefined offset: 247
File: /home/dannyreynolds/public_html/modules/mod_smf_login.php
Line: 199

8: Undefined offset: 315
File: /home/dannyreynolds/public_html/modules/mod_smf_login.php
Line: 334

8: Undefined offset: 34
File: /home/dannyreynolds/public_html/modules/mod_smf_login.php
Line: 299
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 10, 2009, 12:15:56 AM
In modules/mod_smf_login.php

Find:

    ', $txt[247], ' <b>', $context['user']['name'], '</b>,';


Replace with:

    ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'], '</b>,';


Find:
   ' ', $txt[152], ' <a href="', sefReltoAbs($scripturl. 'action=pm'), '">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>';


Replace with:
   ' ', $txt['msg_alert_you_have'], ' <a href="', sefReltoAbs($scripturl. 'action=pm'), '">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt['msg_alert_messages'] : $txt['personal_message'], '</a>';


Delete:

  $txt[34] = str_replace('&?','&', $txt[34]);

Find:

   <a href="', ($bridge_reg!='SMF' ? sefReltoAbs('index.php?option=com_smf_registration&amp;task=lostPassword') : sefReltoAbs($scripturl . 'action=reminder')) , '">',$txt[315],'</a>';


Replace with:

   <a href="', ($bridge_reg!='SMF' ? sefReltoAbs('index.php?option=com_smf_registration&amp;task=lostPassword') : sefReltoAbs($scripturl . 'action=reminder')) , '">',$txt['password_reminder'],'</a>';
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 10, 2009, 12:27:01 AM
That seems to have taken care of most of it. Now I am just getting this one error. Can you help with this one also please?:

8: Undefined offset: 108
File: /home/dannyreynolds/public_html/modules/mod_smf_login.php
Line: 265

Thanks a lot!
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 10, 2009, 12:30:02 AM
Find:

   <a href="', sefReltoAbs($scripturl . 'action=logout&amp;returnurl='.$params->get('logout').'&amp;sesc='. $context['session_id']), '">', $smf_logout_button ? '<img src="' . (!empty($smf_logout_button_image) && $smf_logout_button_image!="" ? $smf_logout_button_image : $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif').'" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" />' : $txt[108], '</a>';


Replace with:

   <a href="', sefReltoAbs($scripturl . 'action=logout&amp;returnurl='.$params->get('logout').'&amp;sesc='. $context['session_id']), '">', $smf_logout_button ? '<img src="' . (!empty($smf_logout_button_image) && $smf_logout_button_image!="" ? $smf_logout_button_image : $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif').'" alt="' . $txt['logout'] . '" style="margin: 2px 0;" border="0" />' : $txt['logout'], '</a>';
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 10, 2009, 12:38:59 AM
Thanks Orstio. That took care of the errors! Could you please point me in the right direction to getting my forum to validate html? The W3C validator is spitting out this and a few related errors. Thanks very much!:

Line 253, Column 112: cannot generate system identifier for general entity "Itemid"

...ge.com/index.php?option=com_wrapper&Itemid=113" ></a><img

An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 10, 2009, 12:50:42 AM
Use the bridge component instead of the wrapper component, for starters. (Not much point in having a bridge component if you aren't actually using it.)
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 10, 2009, 12:58:47 AM
I'm not using the wrapper for the forum but for my estore. Its on the CMS main menu. I turned that button off for testing and I get this error. This looks like my home page button on the CMS because that is the address for the home page it uses.  I really would appreciate it if you can help me validate it. :

Line 190, Column 111: cannot generate system identifier for general entity "Itemid"

....com/index.php?option=com_frontpage&Itemid=1" />

An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 10, 2009, 01:02:53 AM
Your server seems to be converting all the HTML entities to their plain text equivalents.

In English - When your server serves the page, it is changing the characters "&amp;" to "&".

You might need to turn on SEF in Mambo to make your pages validate.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 10, 2009, 01:11:53 AM
My home page is validating. :) The forum is not. :(

Would turning on SEF change my links? That would suck. I got it down to only 3 errors on the forum though. Can you please take one last look? Thanks very much:

Line 465, Column 105: cannot generate system identifier for general entity "Itemid"

...ge.com/index.php?option=com_smf&Itemid=39" />

An entity reference was found in the document,
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 10, 2009, 07:33:35 AM
It's very hard to tell without actually seeing the page and where the invalid link is on that page.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 10, 2009, 12:32:39 PM
Ok. Before we do that if you are willing to take a look, I am still getting one bridge error, on every post/reply if you could please help:

File: /home/dannyreynolds/public_html/components/com_smf/smf.php
Line: 1257

Thanks very much again!
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 10, 2009, 08:24:50 PM
What is the error?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 11, 2009, 10:21:19 AM
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 11, 2009, 09:18:05 PM
Line 1257 of smf.php should be:

global $newsboard, $db_name;

Can you confirm this?

Quote
  • Post preview hangs forever, works fine for quick reply. I can provide the error info from firebug if you want.[/l]
This is probably something to do with the javascript URL and the Mambo SEF URL.

Quote
  • New members can not register generating this error: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 40 bytes) in /home/dannyreynolds/public_html/smf/Sources/Subs-Db-mysql.php on line 655
    [/l]
You should have your PHP RAM set to at least 32 MB.

QuoteI also can't log in to the back end of my CMS now. It says my password is incorrect on one admin account. I did change the password on the forum for that account doing testing but can still log in as admin on forum. My other admin account was unchanged and when I enter the login info to the cms backend,  it just refreshes the admin login screen.

You can do one of two things. 

1) Stop using Firefox. 
2) Turn off the auto-fill forms (autocomplete) in Firefox.

If you let Firefox fill in form data from saved information, it does not matter what you type into the form.  Firefox overrides whatever you type with the saved information.  This is extremely insecure, especially when you are working in your Mambo admin panel.  You may find that you will need to turn this off each time you upgrade Firefox.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 11, 2009, 11:01:09 PM
Yes, that code is on line 1255. The php RAM is set to 64MBs. And, I can't log in to the back end of my CMS in internet explorer either. I was typing the passwords. It won't let me in the account which I never changed the password for either. It justs refreshes the page.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 11, 2009, 11:05:44 PM
Can I see the URL?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 11, 2009, 11:57:33 PM
Have you tried clearing your cookies?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 12:07:56 AM
Yes. No effect.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 12:26:25 AM
What version of Mambo is this?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 12:46:39 AM
4.65
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 12:51:58 AM
Do you know if you published the SMF_login mambot?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 12:55:39 AM
I think it was unpublished and all the rest were published. But I am not 100% sure. I know it was set for smf registration. Can I check in the datatbase through phpmyadmin?

I appreciate the continued effort. I'd really like to make this work.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 01:01:47 AM
You wouldn't happen to have another non-admin user (like a test account) with the same email address or real name as the admin user?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 01:25:13 AM
No. The forum doesn't allow that.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 01:41:47 AM
Could the fact that I converted the forum database to utf-8 after the upgrade from smf 1.19 be relevant? Would it help to PM you ftp access details or cms/forum access details?

Thanks
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 01:47:00 AM
Possibly.  Is your Mambo database also utf-8?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 01:54:03 AM
Yes. That is why I converted the forum, so they would match.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 02:02:58 AM
CMS access details would probably help.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 02:06:51 AM
Just looked at mos_users and looks like a bunch of passwords, including my admin accounts got scrambled. For example, here is a users that is typical, "414b6eb8c07a41a57adc9c1fbcb42f78." Even using the password listed for me doesn't work.

I am PMing you access now.

Thanks
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 02:10:17 AM
QuoteJust looked at mos_users and looks like a bunch of passwords, including my admin accounts got scrambled. For example, here is a users that is typical, "414b6eb8c07a41a57adc9c1fbcb42f78." Even using the password listed for me doesn't work.

That's called a MD5 hash.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 02:18:30 AM
Do you recall pressing any of the synch buttons when you installed the bridge?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 02:19:37 AM
Yes, I synched from Smf to Mambo.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 06:45:08 AM
Did you read the warning next to the button before clicking it?

QuoteThis button will migrate your SMF users to Mambo/Joomla.  It will not grant usergroup status to them.  All migrated users will be regular users in Mambo/Joomla.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 10:47:41 AM
I read it, had done it before, and thought it was right thing to do. Is it fixable or do I need to revert to a backup before conversion and start over?

Thanks
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 11:08:45 AM
How familiar are you with phpMyAdmin?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 11:12:42 AM
I can get around in it (browse and edit tables), import and export databases- the basics I suppose.....

If we can fix it, that would be great. I I revert to the backup, I will lose several days of posts....

Thanks
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 11:33:02 AM
You need to go into your Mambo users table, and find the id number of the user with the username "ADMIN".  Write down that number.

Go to your mos_core_acl_aro table, and find the aro_id associated with the number you wrote down.  Write that down.

Go to your mos_core _acl_groups_aro_map table, and find the entry(ies) for the aro_id you wrote down.  If there is more than one, then one of them should have a group_id of 25.  Delete any for that aro_id that are not 25.  If there is only one, and it has a group_id of 18, then change it to 25.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 11:49:13 AM
The numbers match already with no extras.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 12:10:47 PM
And there is only an entry for group_id of 25?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 12:14:58 PM
Yes, for both of my admin accounts.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Orstio on June 12, 2009, 12:34:03 PM
Are the real names of these users different?  Are the email addresses of these users different?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 12:48:26 PM
The admin username "ADMIN" and the real name is  "Administrator". The email addresses are the same for both my admin accounts. I don't know how that happened.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on June 12, 2009, 05:21:27 PM
Okay, I reverted to pre SMF2RC1-1 upgrade. The CMS is behaving normally. But, otherwise we are back to square one except for foreknowledge of the problem. First, I had and solved this problem again the same way:

Strict Standards: Non-static method mamboCore::getMamboCore() should not be called statically in /home/dannyreynolds/public_html/components/com_smf/smf.php on line 1109

Strict Standards: Non-static method mamboDatabase::getInstance() should not be called statically in /home/dannyreynolds/public_html/components/com_smf/smf.php on line 1110

Strict Standards: Non-static method mosMainFrame::getInstance() should not be called statically in /home/dannyreynolds/public_html/components/com_smf/smf.php on line 1111

Solution (made edit for every occurrence): http://www.simplemachines.org/community/index.php?topic=255254.msg1658341#msg1658341

Getting the undefined offsets again:

.com/smf/index.php?option=com_smf&amp;Itemid=39
8: Undefined offset: 108
File: /home/dannyreynolds/public_html/modules/mod_smf_login.php
Line: 264

.com/smf/index.php?option=com_smf&amp;Itemid=39
8: Undefined offset: 616
File: /home/leroux62/dannyreynolds/modules/mod_smf_login.php
Line: 221

/index.php?option=com_smf&amp;Itemid=39
8: Undefined offset: 153
File: /home/dannyreynolds/public_html/modules/mod_smf_login.php
Line: 211

.com/smf/index.php?option=com_smf&amp;Itemid=39
8: Undefined offset: 247
File: /home/dannyreynolds/public_html/modules/mod_smf_login.php
Line: 199

Post preview still doesn't work. Haven't tested register users because we are in maintenance mode, haven't tested change email or password, etc. You have my login details.  Would appreciate some help. :)
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Aleksi "Lex" Kilpinen on July 08, 2009, 02:30:13 AM
Hi RowdyMusician, just going through some older topics. Did you get things fixed, or do you still need assistance on this?
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on July 08, 2009, 08:06:52 AM
Thanks. I gave up and abandoned the bridge.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Aleksi "Lex" Kilpinen on July 08, 2009, 08:08:39 AM
Sorry to hear it came down to that, but as it is - I will mark the topic solved.
Should you need further help with this later, feel free to start a new topic, or reopen this one.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on July 08, 2009, 09:56:48 AM
Yea, it sucked. It broke a few thousand links to my site. I do like having a fluid layout for the forum again, though its at the cost of having the CMS menu available in the forum of course.
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Kindred on July 08, 2009, 10:39:32 PM
with those errors, I think you were using the wrong bridge...

but you could try one of the portal mods...
Title: Re: Tons of Undefined offset errors after bridge installation
Post by: Rowdy on July 09, 2009, 04:25:12 AM
I was using SMF 2.0 Mambo 4.6 bridge 2.0beta1, with SMF2RC1.1 and latest mambo, whatever it is.