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!
Admin -> Server Settings -> Disable evaluation of templates
Then post any new error messages without eval in them
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?
we still need the line number and the error you are getting.
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?
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'], '
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
that still does not tell us the error, just the line that something is happening on.
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...
That looks like a parse error in /Sources/Subscriptions-PayPal.php. Try uploading a clean file.
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.
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?
Upload a clean file from 2.0.15 install or upgrade package.
And what is the full error message?? ??
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
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
in the error log.... what is the full error message (you know, the one that told you what line the error was occurring on)
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&area=paidsubscribe;sa=view;b013896f1e=0b9c6a4926e0893de53989194fd75ea1
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
that's just an undefined index... that's not related to the initial error of
syntax error, unexpected 'paypal_additional_emails' (T_STRING)
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?
Where did you get the original error? We need to see all of it.
he's got two separate errors... one is a simple missing index. but that won't cause a critical error.
that one is pretty simple - whatever mod he installed is having issues with $selected_tab or $tab_context
the other one -- the one that started this thread -- is a critical error of improper code. That one is probably not going to leave a message in the SMF error log... but it has something to do with paid subscriptions.
quite honestly, I'd suggest loading a clean set of files
Quote from: Kindred on April 13, 2018, 10:31:11 PM
quite honestly, I'd suggest loading a clean set of files
I'm inclined to agree, something broke some code somewhere. AFAIK, there aren't any mods that edit
Subscriptions-PayPal.php or
subscriptions.php (there shouldn't be), and can't think of any reason why OP would be messing with those files (although you never know). Reverting to clean install would be best way to go.
Quote from: Kindred on April 13, 2018, 10:31:11 PM
he's got two separate errors... one is a simple missing index. but that won't cause a critical error.
that one is pretty simple - whatever mod he installed is having issues with $selected_tab or $tab_context
the other one -- the one that started this thread -- is a critical error of improper code. That one is probably not going to leave a message in the SMF error log... but it has something to do with paid subscriptions.
quite honestly, I'd suggest loading a clean set of files
Found the issue after the clean install, I installed everything as before and checked after each change if it still worked. The problem occurred after i installed swedish language... But i uninstalled it and changed that it cannot change paid subs and now it works!
Thanks for all the help!
Cheers!