Paid subscription 2.0.15 error

Started by Hampi, April 11, 2018, 06:33:07 PM

Previous topic - Next topic

Hampi

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!

Illori

Admin -> Server Settings -> Disable evaluation of templates
Then post any new error messages without eval in them

Hampi

Quote from: Illori 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

/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?

Illori

we still need the line number and the error you are getting.

Sir Osis of Liver

Quote from: Hampi on April 11, 2018, 06:33:07 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?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Hampi

Quote from: Illori on April 11, 2018, 08:47:40 PM
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'], '

Hampi

Quote from: Sir Osis of Liver on April 11, 2018, 10:05:25 PM
Quote from: Hampi on April 11, 2018, 06:33:07 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?

Paid Subs 2.0 core feature

Illori

that still does not tell us the error, just the line that something is happening on.

Kindred

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...
Слaва
Украинi

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

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

That looks like a parse error in /Sources/Subscriptions-PayPal.php.  Try uploading a clean file.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Hampi

Quote from: Kindred 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...


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.

Hampi

Quote from: Sir Osis of Liver on April 12, 2018, 04:22:14 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?

Sir Osis of Liver

Upload a clean file from 2.0.15 install or upgrade package.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

And what is the full error message?? ??
Слaва
Украинi

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

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Hampi

Quote from: Kindred on April 12, 2018, 08:26:30 PM
And what is the full error message?? ??

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

Thanks

Hampi

Quote from: Sir Osis of Liver on April 12, 2018, 07:08:31 PM
Upload a clean file from 2.0.15 install or upgrade package.

Thanks for the response.

Ive tried it but the same error

Kindred

in the error log....  what is the full error message (you know, the one that told you what line the error was occurring on)
Слaва
Украинi

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

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Hampi

Quote from: Kindred 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)

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

Kindred

that's just an undefined index...   that's not related to the initial error of
syntax error, unexpected 'paypal_additional_emails' (T_STRING)

Слaва
Украинi

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

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Hampi

Quote from: Kindred 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)

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

Advertisement: