Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 298
Total: 298

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

0 Members and 1 Guest are viewing this topic.

Offline dan4ever

  • Full Member
  • ***
  • Posts: 105
    • 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: 16436
    • 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: 105
    • 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: 16436
    • 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: 105
    • 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: 16436
    • 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: 105
    • 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: 16436
    • 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: 105
    • 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: 16436
    • 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: 105
    • View Profile
Re: Getting " Undefined index" after upgrade...
« Reply #10 on: December 09, 2014, 05:16:17 pm »
Thanks!!!!!

Offline dan4ever

  • Full Member
  • ***
  • Posts: 105
    • 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: 16436
    • 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: 105
    • 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
11153 Views
Last post May 28, 2011, 09:32:37 am
by SMFHacks
1 Replies
6573 Views
Last post March 26, 2011, 01:26:09 pm
by SMFHacks
8 Replies
8284 Views
Last post September 19, 2011, 02:00:29 pm
by VividViews
3 Replies
3658 Views
Last post June 26, 2015, 11:09:32 pm
by SMFHacks
1 Replies
2823 Views
Last post January 30, 2019, 05:50:42 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal