Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12382
Latest: ImportedPotato
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 40253
Total Topics: 7090
Most Online Today: 178
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 81
Total: 82

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

0 Members and 1 Guest are viewing this topic.

Offline dan4ever

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Getting " Undefined index" after upgrade...
« on: December 08, 2014, 09:23:56 am »
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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #1 on: December 08, 2014, 01:07:00 pm »
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/

Offline dan4ever

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #2 on: December 08, 2014, 02:25:32 pm »
For first issue might be a missing theme edit.
?????

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #3 on: December 08, 2014, 05:35:28 pm »
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/

Offline dan4ever

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #4 on: December 08, 2014, 06:43:35 pm »
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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #5 on: December 08, 2014, 07:52:00 pm »
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/

Offline dan4ever

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #6 on: December 09, 2014, 06:03:27 am »
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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
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/

Offline dan4ever

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #8 on: December 09, 2014, 09:02:39 am »
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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #9 on: December 09, 2014, 11:20:57 am »
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/

Offline dan4ever

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #10 on: December 09, 2014, 05:16:17 pm »
Thanks!!!!!

Offline dan4ever

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #11 on: December 09, 2014, 05:19:05 pm »
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #12 on: December 09, 2014, 05:22:02 pm »
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/

Offline dan4ever

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #13 on: December 09, 2014, 05:26:49 pm »
OK, Thanks!!!!

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
7966 Views
Last post May 28, 2011, 09:32:37 am
by SMFHacks
1 Replies
4068 Views
Last post March 26, 2011, 01:26:09 pm
by SMFHacks
8 Replies
5157 Views
Last post September 19, 2011, 02:00:29 pm
by VividViews
3 Replies
1734 Views
Last post June 26, 2015, 11:09:32 pm
by SMFHacks
1 Replies
923 Views
Last post January 30, 2019, 05:50:42 pm
by SMFHacks

+- Recent Topics

Moving pictures to another user personal gallery by SMFHacks
Today at 02:03:33 pm

Rebuild related images time too long by SMFHacks
August 09, 2020, 01:52:57 pm

Call to undefined function mysql_num_rows() by SMFHacks
July 30, 2020, 07:45:29 am

Problem with one videosite embedding by Hatshepsut
July 24, 2020, 01:25:08 am

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

Powered by EzPortal