close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error on new istall of PowerStore3 logging in

Thread began 7/28/2010 7:13 pm by admin140217 | Last modified 9/15/2010 12:44 pm by Jason Byrnes | 1310 views | 9 replies |

admin140217

Error on new istall of PowerStore3 logging in

I have just installed PowerStore 3 and am getting an error when I go to the Admin login, the error is below:

Parse error: syntax error, unexpected T_STRING in /hermes/web01b/b1067/moo.servername/PowerStore300/WA_Globals/WA_Globals.php(58) : eval()'d code on line 1

Parse error: syntax error, unexpected T_STRING in /hermes/web01b/b1067/moo.servername/PowerStore300/WA_Globals/WA_Globals.php(58) : eval()'d code on line 1

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hermes/web01b/b1067/moo.servername/PowerStore300/WA_Globals/WA_Globals.php(58) : eval()'d code:1) in /hermes/web01b/b1067/moo.servername/PowerStore300/WA_eCart/WA_eCart_Definition_PHP.php on line 480

This is a new install as it came out of the box but I'm not sure of where the error is. I can supply the URL is needed but I was hoping someone knew the answer to this one.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

change line 58 of the WA_Globals/WA_Globals.php file:

php:
eval("\$WAGLOBAL_".$value[$x][4]."='".replaceTokens($value[$x][1],$tabs)."';");



to:

php:
eval("\$WAGLOBAL_".$value[$x][4]."='".addslashes(replaceTokens($value[$x][1],$tabs))."';");
Sign in to reply to this post

admin140217

That seems to have done it Jason, thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome, glad to hear it is working.

Sign in to reply to this post

carleneBeta Tester

I'm having the same issue is this due to the PHP 5.3.0 version failing if the session fails to start?

I did the fix but am still getting this error:


Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /Applications/MAMP/htdocs/wholesale/store/users_Registration_full.php:5) in /Applications/MAMP/htdocs/wholesale/store/WA_eCart/WA_eCart_Definition_PHP.php on line 480

I'm testing locally on MAMP with PHP 5.3.2.

Sign in to reply to this post

Jason ByrnesWebAssist

the error is reporting output to the page on line 5 of the users_Registration_full.php page. Please send a copy of that page in a zip archive so I can check the code.

Sign in to reply to this post

carleneBeta Tester

Thanks Jason!

I of course was customizing this page and adding encryption to the Password field. Have no idea if I've messed it up somehow now.

Attached Files
users_Registration_full.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

there is a blank space at the end of line 4 that is causing the problem, it is just after the ">" character:
"?> "

remove that blank space to fix the error.

Sign in to reply to this post

carleneBeta Tester

Darn those blank spaces!!

Thanks so much Jason - I doubt I would have found that on my own! It's been driving me crazy. That error is gone now.

However -- when I fill out the form and push Register - I'm getting this error on the page:

*******
Deprecated: Function split() is deprecated in /Applications/MAMP/htdocs/wholesale/store/WA_ValidationToolkit/WAVT_Scripts_PHP.php on line 330

Deprecated: Function eregi() is deprecated in /Applications/MAMP/htdocs/wholesale/store/WA_ValidationToolkit/WAVT_Scripts_PHP.php on line 547

Deprecated: Function eregi() is deprecated in /Applications/MAMP/htdocs/wholesale/store/WA_ValidationToolkit/WAVT_Scripts_PHP.php on line 547
Column 'UserGroupID' cannot be null

*******

I googled this and apparently the split( call doesn't work in PHP 5.3 and I should replace it with explode( ???

Ok - where do I do this?

Sign in to reply to this post

Jason ByrnesWebAssist

none of the power store 3 files use the split function, did you use Validation toolkit to make updates?

Download a fresh copy WA_ValidationToolkit/WAVT_Scripts_PHP.php file from the powerstore 3 download center.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...