Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12424
Latest: serbenfiquista
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 40041
Total Topics: 7046
Most Online Today: 53
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 61
Total: 62

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

0 Members and 1 Guest are viewing this topic.

Offline dan4ever

  • Ad Seller Pro Customer
  • 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: 15023
    • 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

  • Ad Seller Pro Customer
  • 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: 15023
    • 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

  • Ad Seller Pro Customer
  • 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: 15023
    • 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

  • Ad Seller Pro Customer
  • 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: 15023
    • 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

  • Ad Seller Pro Customer
  • 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: 15023
    • 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

  • Ad Seller Pro Customer
  • 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

  • Ad Seller Pro Customer
  • 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: 15023
    • 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

  • Ad Seller Pro Customer
  • 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
7829 Views
Last post May 28, 2011, 09:32:37 am
by SMFHacks
1 Replies
3985 Views
Last post March 26, 2011, 01:26:09 pm
by SMFHacks
8 Replies
4969 Views
Last post September 19, 2011, 02:00:29 pm
by VividViews
3 Replies
1632 Views
Last post June 26, 2015, 11:09:32 pm
by SMFHacks
1 Replies
474 Views
Last post January 30, 2019, 05:50:42 pm
by SMFHacks

+- Recent Topics

Order of photos by D4611001
Today at 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

English British Translation file by HAL9000
January 17, 2020, 05:44:28 pm

Characters dispayed as boxes by SMFHacks
January 16, 2020, 07:21:51 am

Multiple adds where one used to be? by SMFHacks
January 07, 2020, 08:20:38 am

Ribbon Theme Logo Position by slizzie1986
January 06, 2020, 08:52:31 pm

System enhancement? by SMFHacks
January 03, 2020, 09:22:45 am

Pretty Url Pro Is it compatible with 7.2? by Rock Lee
January 01, 2020, 08:53:50 pm

SMF Cookie Change Compatibly by HDB
December 28, 2019, 03:33:49 pm

Powered by EzPortal