renlok / WeBid

The official WeBid github fork
http://www.webidsupport.com
114 stars 125 forks source link

error with last update when trying to install #489

Closed ghost closed 6 years ago

ghost commented 6 years ago

with the last update of this file by moving this you get a serious database error when trying to install. it needs to stay where it is to work

robberteggermont commented 6 years ago

What is the database error that you get?

The purpose of that change was to enable logging of database errors, so could it be that you are now seeing a problem that was always already there (somewhere else in the code)?

ghost commented 6 years ago

Error with MySQL (my site name).webid_settings """""""" template/databasepdo.php line 215

robberteggermont commented 6 years ago

Seems like an error somewhere else in the code. Enable debugging (set 'WeBidDebug' to true in common.php) to obtain the backtrace and see which database query caused this error message.

ghost commented 6 years ago

Ok mate I'll try tomorrow

MESWEB commented 6 years ago

This seems like something is wrong with webid_settings table like missing values or bad value of items.

ghost commented 6 years ago

Could someone please look into it as my skills are limited

MESWEB commented 6 years ago

So copy and paste here all errors without editing.

ghost commented 6 years ago

Warning: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'aucsta.webid_settings' doesn't exist in /hermes/bosnaweb07a/b1189/ipg.aucstacom/includes/database/DatabasePDO.php on line 215

robberteggermont commented 6 years ago

That error seems to indicate a problem in the database settings. Without a backtrace (see my previous comment) it's impossible to diagnose this.

I just did a fresh install from scratch without any problem. I didn't see this error. Since the problem you have is not related to the change, I suggest you close close this pull request #489 .

ghost commented 6 years ago

so I set webid debug to true and it kept showing this Notice [8] Undefined variable: system on /hermes/bosnaweb07a/b1189/ipg.aucstacom/includes/functions_admin.php line 115 Notice [8] Trying to get property of non-object on /hermes/bosnaweb07a/b1189/ipg.aucstacom/includes/functions_admin.php line 115

MESWEB commented 6 years ago

What is Your line 115?? Is this:


 curl_setopt($curl, CURLOPT_REFERER, $system->SETTINGS['siteurl']);
ghost commented 6 years ago

yes it is

MESWEB commented 6 years ago

So then what is value of "siteurl" in settings in DB?

ghost commented 6 years ago

this field doesn't exist so that must mean that there is an error with the database system because this is a fresh install

robberteggermont commented 6 years ago

Notice [8] Undefined variable: system on /hermes/bosnaweb07a/b1189/ipg.aucstacom/includes/functions_admin.php line 115

It seems the load_file_from_url function is missing a 'global $system;' line. What happens when you insert that at the start of the function?

ghost commented 6 years ago

I have no idea what to do but I also noticed that in admin version check it says the server can't check url whether it's related I'm not sure