Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 775
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 778
Total: 778

Author Topic: Getting " Undefined index" after upgrade...  (Read 13498 times)

0 Members and 1 Guest are viewing this topic.

Getting " Undefined index" after upgrade...
« on: »
Hi

I'm getting a lot of Undefined index after upgrade to 4.0


Quote
http://www.guldforum.se/forum/index.php?action=classifieds;sa=editauction;id=22
8: Undefined index: secondpaypal
Fil: /storage/content/96/112396/guldforum.se/public_html/forum/Themes/default/Alerts.template.php (editauction sub template - eval?)
Rad: 5443

Quote
http://www.guldforum.se/forum/index.php?action=classifieds;sa=addlisting2
8: Undefined variable: topicOptions
Fil: /storage/content/96/112396/guldforum.se/public_html/forum/Sources/classifieds2.php
Rad: 7401


/Dan

Re: Getting " Undefined index" after upgrade...
« Reply #1 on: »
New update
4.0.1
!Fixed undefined on add listing/add auction if you didn't have the insert into post option


For first issue might be a missing theme edit.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Getting " Undefined index" after upgrade...
« Reply #2 on: »
For first issue might be a missing theme edit.
?????

Re: Getting " Undefined index" after upgrade...
« Reply #3 on: »
Hmm lets see if we can find the true error line. Do the following
http://www.simplemachines.org/community/index.php?topic=290186.0

Then try to edit auction again and see if we get a different line number.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Getting " Undefined index" after upgrade...
« Reply #4 on: »
No more error i think...

But have some from "Store" and you didn't had time to fix.

Quote
http://www.guldforum.se/forum/index.php?action=profile;area=account
8: Undefined index: store_storepaypal
Fil: /storage/content/96/112396/guldforum.se/public_html/forum/Themes/default/Alerts.template.php (edit_options sub template - eval?)
Rad: 1356

Quote
http://www.guldforum.se/forum/index.php?action=store;sa=myproducts
8: Undefined index: cannot_smfstore_userstore
Fil: /storage/content/96/112396/guldforum.se/public_html/forum/Sources/Security.php
Rad: 905

Quote
http://www.guldforum.se/forum/index.php?action=store;sa=contact
8: Undefined index: message
Fil: /storage/content/96/112396/guldforum.se/public_html/forum/Sources/Store2.php
Rad: 2978

/Dan4ever

Re: Getting " Undefined index" after upgrade...
« Reply #5 on: »
Add this to your themes/default/languages/modifications.english.php file

Code: [Select]
$txt['cannot_smfstore_userstore'] = 'You are not allowed to manage your own store.';



The contact errror would only be logged if you access that link directly I see no other way. That link is only shown on the myorders page form.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Getting " Undefined index" after upgrade...
« Reply #6 on: »
And the last error I get in store is:

Quote
http://www.guldforum.se/forum/index.php?action=profile;area=account;u=1220
8: Undefined index: store_storepaypal
Fil: /storage/content/96/112396/guldforum.se/public_html/forum/Themes/default/Alerts.template.php (edit_options sub template - eval?)
Rad: 1356

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Getting " Undefined index" after upgrade...
« Reply #8 on: »
Yes, the "eval" dissapeard...
but it looks like this now:

Quote
http://www.guldforum.se/forum/index.php?action=profile;area=account;u=325
8: Undefined index: store_storepaypal
Fil: /storage/content/96/112396/guldforum.se/public_html/forum/Themes/default/Profile.template.php
Rad: 1356

And if I click on the last file in the error I get this:

Quote
1344:                if (allowedTo('smfstore_userstore') == true || allowedTo('smfstore_manage') == true)
1345:                {
1346:                  echo '
1347:                           <dl>';
1348:            
1349:                  
1350:                     echo '
1351:                              <dt>
1352:                                 <strong>', $txt['smfstore_paypal_address'], '</strong><br />
1353:                                 <span class="smalltext"></span>
1354:                              </dt>
1355:                              <dd>
==>1356:                                 <input type="text" name="default_options[store_storepaypal]" size="50" value="', $context['member']['options']['store_storepaypal'], '" />
1357:                              </dd>';
1358:                  
1359:            
1360:                  echo '
1361:                  </dl>';
1362:            }
« Last Edit: December 09, 2014, 09:23:56 am by dan4ever »

Re: Getting " Undefined index" after upgrade...
« Reply #9 on: »
Replace the part of the line with
Code: [Select]
<input type="text" name="default_options[store_storepaypal]" size="50" value="', isset($context['member']['options']['store_storepaypal']) ? $context['member']['options']['store_storepaypal'] : '', '" />
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Getting " Undefined index" after upgrade...
« Reply #10 on: »
Thanks!!!!!

Re: Getting " Undefined index" after upgrade...
« Reply #11 on: »
Can you do http://www.simplemachines.org/community/index.php?topic=290186.0


Is it ok to keep the "disable eval()"?   or should I turn it on again?

Re: Getting " Undefined index" after upgrade...
« Reply #12 on: »
It's ok to keep it like that I do on my sites.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Getting " Undefined index" after upgrade...
« Reply #13 on: »
OK, Thanks!!!!

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
14864 Views
Last post May 28, 2011, 09:32:37 am
by SMFHacks
8 Replies
15500 Views
Last post September 19, 2011, 02:00:29 pm
by VividViews
3 Replies
5645 Views
Last post June 26, 2015, 11:09:32 pm
by SMFHacks
1 Replies
5329 Views
Last post January 30, 2019, 05:50:42 pm
by SMFHacks
3 Replies
6797 Views
Last post August 26, 2024, 11:10:54 pm
by SMFHacks

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as &#39; in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal