Advertisement:

Author Topic: Paid subscription 2.0.15 error  (Read 939 times)

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Paid subscription 2.0.15 error
« on: April 11, 2018, 06:33:07 PM »
Hello.

Im trying to setup paid subscription that has been added to smf.

When i enable the service and then go to members paid subscriptions i get the error:
syntax error, unexpected 'paypal_additional_emails' (T_STRING)

If i check the logfile i see:

mywebsite.com/index.php?pretty;action=admin&area=paidsubscribe;b542e4b6cd43=f6ac073c043d0497f17581f764326b03
and
/customers/9/b/e/mywebsite.com/httpd.www/Themes/default/Errors.template.php (generic_menu_dropdown_above sub template - eval?)

Ive tried to search the forums but have not seen any relevent information on my issue.

Thanks in advance!

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,422
Re: Paid subscription 2.0.15 error
« Reply #1 on: April 11, 2018, 07:18:21 PM »
Admin -> Server Settings -> Disable evaluation of templates
Then post any new error messages without eval in them

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Paid subscription 2.0.15 error
« Reply #2 on: April 11, 2018, 07:41:41 PM »
Admin -> Server Settings -> Disable evaluation of templates
Then post any new error messages without eval in them

 /customers/9/b/e/mywebsite.com/httpd.www/Themes/Karanlik-Lord/GenericMenu.template.php

i can now click on it and see the code, is that any useful for the troubleshooting?

Seems like its a error with my theme?

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,422
Re: Paid subscription 2.0.15 error
« Reply #3 on: April 11, 2018, 08:47:40 PM »
we still need the line number and the error you are getting.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,933
  • 'Tis the gift to be simple (duh)
Re: Paid subscription 2.0.15 error
« Reply #4 on: April 11, 2018, 10:05:25 PM »
Im trying to setup paid subscription that has been added to smf.

Are you using Paid Subs 2.0 core feature, or have you installed the old 1.1 mod?

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Paid subscription 2.0.15 error
« Reply #5 on: April 12, 2018, 07:57:44 AM »
we still need the line number and the error you are getting.

Line: 322

322:         ', !empty($selected_tab['description']) ? $selected_tab['description'] : $tab_context['description'], '

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Paid subscription 2.0.15 error
« Reply #6 on: April 12, 2018, 07:58:04 AM »
Im trying to setup paid subscription that has been added to smf.

Are you using Paid Subs 2.0 core feature, or have you installed the old 1.1 mod?

Paid Subs 2.0 core feature

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,422
Re: Paid subscription 2.0.15 error
« Reply #7 on: April 12, 2018, 08:03:13 AM »
that still does not tell us the error, just the line that something is happening on.

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,463
  • Gender: Male
    • Kindred-999 on GitHub
Re: Paid subscription 2.0.15 error
« Reply #8 on: April 12, 2018, 10:45:21 AM »
in other words -- when you get an error and want help
include the FULL error message
include the lines from the erroring files...  including 5-10 lines before and after...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,933
  • 'Tis the gift to be simple (duh)
Re: Paid subscription 2.0.15 error
« Reply #9 on: April 12, 2018, 04:22:14 PM »
That looks like a parse error in /Sources/Subscriptions-PayPal.php.  Try uploading a clean file.

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Paid subscription 2.0.15 error
« Reply #10 on: April 12, 2018, 07:04:58 PM »
in other words -- when you get an error and want help
include the FULL error message
include the lines from the erroring files...  including 5-10 lines before and after...


302:            echo '<a href="', $scripturl, '?action=helpadmin;help=', !empty($selected_tab['help']) ? $selected_tab['help'] : $tab_context['help'], '" onclick="return reqWin(this.href);" class="help"><span class="generic_icons help"></span></a>';
303:   
304:         echo $tab_context['title'], '
305:            </span>';
306:      }
307:      else
308:      {
309:         echo '
310:            ', $tab_context['title'];
311:      }
312:   
313:      echo '
314:         </h3>
315:      </div>';
316:   
317:      // Shall we use the tabs?
318:      if (!empty($settings['use_tabs']))
319:      {
320:         echo '
321:      <p class="windowbg description">
==>322:         ', !empty($selected_tab['description']) ? $selected_tab['description'] : $tab_context['description'], '
323:      </p>';
324:   
325:         // The admin tabs.
326:         echo '<ul class="pagination">';
327:   
328:         // Print out all the items in this tab.
329:         foreach ($tab_context['tabs'] as $sa => $tab)
330:         {
331:            if (!empty($tab['disabled']))
332:               continue;
333:   
334:            if (!empty($tab['is_selected']))
335:            {
336:               echo '
337:            <li>
338:               <a class="active firstlevel" href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], isset($tab['add_params']) ? $tab['add_params'] : '', '"><span class="firstlevel">', $tab['label'], '</span></a>
339:            </li>';
340:            }
341:            else
342:               echo '


There is the full file where the error message come from.

Thanks for the responses.

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Paid subscription 2.0.15 error
« Reply #11 on: April 12, 2018, 07:06:11 PM »
That looks like a parse error in /Sources/Subscriptions-PayPal.php.  Try uploading a clean file.

Do you mean upload a new file from smf installations files? or remove the content from the file and see if it will add the info again?

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,933
  • 'Tis the gift to be simple (duh)
Re: Paid subscription 2.0.15 error
« Reply #12 on: April 12, 2018, 07:08:31 PM »
Upload a clean file from 2.0.15 install or upgrade package.

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,463
  • Gender: Male
    • Kindred-999 on GitHub
Re: Paid subscription 2.0.15 error
« Reply #13 on: April 12, 2018, 08:26:30 PM »
And what is the full error message?? ??
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Paid subscription 2.0.15 error
« Reply #14 on: April 13, 2018, 07:35:30 AM »
And what is the full error message?? ??

Im sorry for not understanding you, but where do i find the full error message?

Thanks

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Paid subscription 2.0.15 error
« Reply #15 on: April 13, 2018, 07:36:25 AM »
Upload a clean file from 2.0.15 install or upgrade package.

Thanks for the response.

Ive tried it but the same error

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,463
  • Gender: Male
    • Kindred-999 on GitHub
Re: Paid subscription 2.0.15 error
« Reply #16 on: April 13, 2018, 09:53:17 AM »
in the error log....  what is the full error message (you know, the one that told you what line the error was occurring on)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Paid subscription 2.0.15 error
« Reply #17 on: April 13, 2018, 03:25:05 PM »
in the error log....  what is the full error message (you know, the one that told you what line the error was occurring on)

0b9c6a4926e0893de53989194fd75ea1
undefined
http://publicgaming.se/index.php?pretty;action=admin&amp;area=paidsubscribe;sa=view;b013896f1e=0b9c6a4926e0893de53989194fd75ea1 [nofollow]
File: /customers/9/b/e/publicgaming.se/httpd.www/Themes/Karanlik-Lord/GenericMenu.template.php (This is the file i can click on and posted before)
Undefined index: description
Line: 322

This is everything under the error.. that I can find..

This is everything in the log

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,463
  • Gender: Male
    • Kindred-999 on GitHub
Re: Paid subscription 2.0.15 error
« Reply #18 on: April 13, 2018, 04:11:55 PM »
that's just an undefined index...   that's not related to the initial error of
syntax error, unexpected 'paypal_additional_emails' (T_STRING)

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Hampi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Paid subscription 2.0.15 error
« Reply #19 on: April 13, 2018, 05:27:59 PM »
that's just an undefined index...   that's not related to the initial error of
syntax error, unexpected 'paypal_additional_emails' (T_STRING)

Thanks for responding, but where do i find it then? ive posted what i think you meant, but there is something more?