Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 02:46:46 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155540 Posts in 21712 Topics by 7737 Members
Latest Member: deanmacullam
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: install.php with invalid SQL has prevented any further installations  (Read 460 times)
sciclist

Offline Offline

Posts: 6


« on: September 06, 2010, 01:24:31 PM »

Hi,

Is this a known problem?

Without attempting to detail, at this stage, the errors in the install.php that I wrote for a module which I am designing, may I pose this general question?

I attempted to install my prototype module on my clients WB. My install.php contained SQL syntax errors and no table was added to the WB database. However, the installation facility is now completely broken - no other modules can be installed either.

If this does not smack of a known problem, I can, of course, give more info as to my client's WB version and the precise nature of the errors in my SQL in install.php.

Thanks,

John
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #1 on: September 06, 2010, 01:37:19 PM »

no it is not.. can you post your code from install.php file..
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
sciclist

Offline Offline

Posts: 6


« Reply #2 on: September 09, 2010, 09:03:23 PM »

Thanks for your response.

The offending install.php is attached. As you can see, my use of quotes was muddled.

John
Logged
mjm4842

Offline Offline

Posts: 227


« Reply #3 on: September 10, 2010, 06:21:03 AM »

Hi sciclist,

What I would suggest is that you temporarily enable PHP error messages in websitebaker's Settings (click on the "Show Advanced Options >>" button). Set the PHP Error Reporting Level to E_ALL and save. Then try to install some other module.

An error message will hopefully appear on the screen. Copy and paste it back here in this thread.

The E_ALL setting causes PHP error messages to appear on the screen, error messages which are often key to troubleshooting a problem.

IMPORTANT: Don't forget to set it back to E_NONE as soon as you are done to prevent warnings from appearing when customers use the website.

With warmest regards,

Michael Milette
« Last Edit: September 10, 2010, 06:22:54 AM by mjm4842 » Logged

Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________ ________


www.tngconsulting.c a
sciclist

Offline Offline

Posts: 6


« Reply #4 on: September 14, 2010, 10:00:52 AM »

Thanks Michael.

Parse error: syntax error, unexpected T_STRING in /homepages/21/d111430206/htdocs/temp/unzip/info.php  on line 2

I thought: "Ah, good, now I can jump in and start to tackle the problem"

Then I discovered that there is no /homepages directory in root (or /pages or /modules ...).

Doh! Where am I?

CMS Version 2.8.1
Revision 1285
Admin version 1.4
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #5 on: September 14, 2010, 11:32:55 AM »

maybe files failed to transfer via ftp ?
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
pcwacht
AddOn Development
*
Offline Offline

Posts: 2858



WWW
« Reply #6 on: September 14, 2010, 11:55:12 AM »

Quote
Then I discovered that there is no /homepages directory in root (or /pages or /modules ...).
and
Quote
/homepages/21/d111430206/htdocs/temp/unzip/info.php 


That's right, there are no homepages in your root or pages etc
The homepages is the root of your webserver,
in it is a path to your htdocs, /homepages/21/d111430206/htdocs
the htdocs is your website root, here are the pages wich will be send when someone surfs to www.yourwebsite.com


The error :
Quote
Parse error: syntax error, unexpected T_STRING in /homepages/21/d111430206/htdocs/temp/unzip/info.php  on line 2
simple tells you that /temp/unzip/info.php (in your website root) has illegal php code, a syntax error

When you install something through the backend of wb, wb will receive the zip and unzips it in your temp directory (websiteroot/temp/unzip)
Then it tries to read the info.php so wb's install routine knows what you are installing, template, module etc
Then it should copy the content of temp/unzip to the correct location, /templates for example after wich it will fire up the install.php.


In this case your info.php is not correct. PHP gives an error and WB halted

Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
sciclist

Offline Offline

Posts: 6


« Reply #7 on: September 14, 2010, 03:11:35 PM »

In this case your info.php is not correct.

Ah, but it is not my info.php. The error message I posted resulted from trying to install the "members" module from the WB repository. The same problem occurs with any module whatsoever.

There is indeed an error (a missing comment delimiter) on line two of my info.php file so it would appear that said file is lodged in the throat of my client's web-server!

Should not WB ensure that any detritus from failed installations is removed or over-written prior to, or during, subsequent installations?

I imagine no author other than me has managed to make an error so early in their coding of so trivial a file. Nevertheless, this is a misbehaviour of WB that should perhaps be fixed or at least documented.

Many thanks for your guidance, Michael.

John
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2858



WWW
« Reply #8 on: September 14, 2010, 04:52:01 PM »

After a succesfull install the temp files will be deleted, but if a script goes in error it stops.....


Have fun
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!