Login Tool

Issues related to the Login tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html

TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
trust15
 
 
Posts: 15
Joined: Wed Dec 13, 2017 8:27 am

Login Tool

Post by trust15 » Sun Jun 17, 2018 8:18 am

Hello,
in advance, sorry for my bad English.
PHP gives me a syntax error on the admin object page.

Code:

Code: Select all

Parse error: syntax error, unexpected 'java' (T_STRING), expecting ',' or ';' in /var/www/vhosts/DOMAIN/home/adm-home.php on line 49
page Code line 49:

Code: Select all

echo "<script src="java/adm-home.js"></script>
would have to be replaced by

Code: Select all

echo "<script src='java/adm-home.js'></script>

Another problem:

I built a login / registration page with WWB14.
When registering, everything is written to the database without errors, but if I want to log in, I am directed to the error page that I have specified.

Unfortunately, there is no log file to see the error in more detail.

The login Php code:

Is the error known or is the error with me?

What can I do to fix it?

Thank you and have a nice sunday,

User avatar
Pablo
 
Posts: 12664
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Login Tool

Post by Pablo » Sun Jun 17, 2018 9:29 am

I do not recognize the code of the login admin. How exactly did you get this code?

Are you using the latest version of the software (14.0.4)?
What are your exact settings?

trust15
 
 
Posts: 15
Joined: Wed Dec 13, 2017 8:27 am

Re: Login Tool

Post by trust15 » Thu Jun 21, 2018 7:57 am

Hello
sorry for the late reply.

Meanwhile, the problem has been solved.
I started with a new project and rebuilt, now almost everything works.

2 problems but I found again.

In the tool "profile edit" gives me PHP after uploading an error message.
I've just corrected the php code - perhaps in a later WWB update einpflegen.

PHP error:

Code: Select all

Parse error: syntax error, unexpected '" "' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in /var/www/vhosts/xxx/xxx/profil/profil-edit.php on line 258
The code that gives me an error:

Code: Select all

<tr>
	<td>
		<div class="thumbnail">
			<div class="frame">
				<img alt="<?php echo $db_avatar; ?>" src="<?php echo $avatar_folder." <?>="" "="">
			</div>
		</div>
	</td>
</tr>
My corrected code:

Code: Select all

<tr>
	<td>
		<div class="thumbnail">
			<div class="frame">
				<img alt="<?php echo $db_avatar; ?>" src="<?php echo $avatar_folder; ?>">
			</div>
		</div>
	</td>
</tr>
On my server PHP version 7.2.6 is enabled and the page is set to PHP "5+" in WWB.

The second problem concerns the "signup tool".
If I want to convert this to a form, the WWB closes without error message directly.

Is the error again only with me, or is the error reproducible?

Best regards

Philipp

User avatar
Pablo
 
Posts: 12664
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Login Tool

Post by Pablo » Thu Jun 21, 2018 8:54 am

It looks like you are not using the latest update.
This problem was already fixed a few weeks ago.

Also note that the 'corrected' code is not right.

It should be:

Code: Select all

<img alt="<?php echo $db_avatar; ?>" src="<?php echo $avatar_folder.'/'.$db_avatar; ?>">

trust15
 
 
Posts: 15
Joined: Wed Dec 13, 2017 8:27 am

Re: Login Tool

Post by trust15 » Thu Jun 21, 2018 12:06 pm

Hello
many thanks for the answer.

I have set that the WWB checks with each start whether a new version is available - there was no message.

Now I've seen it myself, I have the version 14.0.4 from the 5th of June.
Just install the newer version ..

Thanks for the note (

User avatar
BaconFries
 
 
Posts: 3901
Joined: Thu Aug 16, 2007 7:32 pm

Re: Login Tool

Post by BaconFries » Thu Jun 21, 2018 12:30 pm

You can visit the following News and Announcements for all latest builds versions, but at times there will be what is known as a 'Hot Fix' this doest show immediately show so it is always best to visit the following Download where all 'New' versions can be seen by the date as of today (build date: June 14, 2018)

trust15
 
 
Posts: 15
Joined: Wed Dec 13, 2017 8:27 am

Re: Login Tool

Post by trust15 » Fri Jun 22, 2018 4:23 am

Thank you for the information.

Then I know now for the future :-)

User avatar
Pablo
 
Posts: 12664
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Login Tool

Post by Pablo » Fri Jun 22, 2018 9:32 am

To be able to help you, I need to see the complete code of the page.

User avatar
Pablo
 
Posts: 12664
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Login Tool

Post by Pablo » Fri Jun 22, 2018 10:01 am

Could you please disable HTML formatting so the HTML can be read?

User avatar
Pablo
 
Posts: 12664
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Login Tool

Post by Pablo » Fri Jun 22, 2018 10:44 am

The specified avatar folder is incorrect.

Code: Select all

$avatar_folder = 'https://adm.ilg-spedition.de/adm/avatars';
it should be a relative folder

Code: Select all

$avatar_folder = 'avatars';

trust15
 
 
Posts: 15
Joined: Wed Dec 13, 2017 8:27 am

Re: Login Tool

Post by trust15 » Fri Jun 22, 2018 10:54 am

The change did not change anything.

trust15
 
 
Posts: 15
Joined: Wed Dec 13, 2017 8:27 am

Re: Login Tool

Post by trust15 » Fri Jun 22, 2018 11:22 am

Okay, I have the same error in the "edit profile tool" ..

Name, Email etc. are changed in the database, only the avatar can not be changed - without error message.

Seems to me a general problem with the upload function in the tools to be, as soon as these are converted.

Can you reconstruct the problem with you? Or is the error in my WWB project?

User avatar
Pablo
 
Posts: 12664
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Login Tool

Post by Pablo » Fri Jun 22, 2018 11:39 am

It works for me.
Are you sure the path is correct?

trust15
 
 
Posts: 15
Joined: Wed Dec 13, 2017 8:27 am

Re: Login Tool

Post by trust15 » Fri Jun 22, 2018 12:19 pm

Image

That's funny.
Then I have to continue trying.

The folder with the avatars would have to be accessible from the registration page with 'adm / avatars'.

It just does not work.

User avatar
Pablo
 
Posts: 12664
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Login Tool

Post by Pablo » Fri Jun 22, 2018 12:55 pm

Is the folder writable?
Does it work when the avatars folder isa sub folder of the current folder?

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests