Error after installation.

Archived from the Web Auction Discussion forum.

paulkruger — Sat Jun 23, 2007 2:30 pm

I am getting this error when I am logging in as admin:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of runtime function name. If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/vhosts/bidasis.com/httpdocs/webauction/tables/users/users.php on line 57


If I reload it appears on top of the application. Which INI file? Is this a common problem?

Thanks much.

Paul


paulkruger — Sat Jun 23, 2007 2:33 pm

More information:

I added new category “Single Family Residence” and got the same error. Had to reload page ( refresh does not work )
Now when I view list of Catgories the new Category is listed three times?


shannah — Sat Jun 23, 2007 4:21 pm

Thanks for reporting this. To fix it, open tables/users/users.php and change line 57 from
$perms = $this->role__permissions(&$record);
to
$perms = $this->role__permissions($record);

i.e. remove the ampersand.

The problemm with 3 categories occurs because you refreshed the page twice which created the category. When you fix the first issue, this will cease to be an issue because it wouldn’t have stopped on the error.

Aleternatively you could prevent warnings from being displayed (it’ll only display errors in this case) by adding the following to the beginning of your index.php file:

error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);

-Steve


paulkruger — Sat Jun 23, 2007 5:53 pm

New Issue:

everything seems ok but just tried the link for: “My Watch List” and the page returns this “notice” at the top of the page with the normal content below.

Notice: Undefined index: ____actions____ in /var/www/vhosts/bidasis.com/httpdocs/dataface/Dataface/RecordGrid.php on line 128


shannah — Sun Jun 24, 2007 2:18 pm

Add
error_reporting(E_ALL ^ E_NOTICE);

to the beginning of your index.php file.
-Steve


paulkruger — Wed Jun 27, 2007 8:44 am

http://mail2me.us/webauction/

I have a lot of errors and strange portions of the code showing up. I have re-installed twice.

This went so well the first time on bidasis.com now it is a bear to make it work. Did it same??

Ideas?


evlthecat — Wed Jun 27, 2007 9:54 pm

New Issue:

everything seems ok but just tried the link for: “My Watch List” and the page returns this “notice” at the top of the page with the normal content below.


shannah — Wed Jun 27, 2007 10:36 pm

Thanks for pointing this out. Your solution works. A more stable solution (which I have corrected in the source for the next release). Add the following to the first line of both the sendAdminEmail() and sendEmail() functions:
$app =& Dataface_Application::getInstance();

It is a coincidence that $app is also a global variable.

Thanks

Steve


paulkruger — Thu Jun 28, 2007 6:59 am

re:

I had the same problem and found that there is some loose programming going on in the RecordGrid.php file.. You can clear this error and maintain program integrity by editing the RecordGrid.php file in this way:

Change ->


paulkruger — Thu Jun 28, 2007 7:03 am

foreach ( $columns as $column){

$row[$column] = $record[$column];


paulkruger — Thu Jun 28, 2007 7:09 am

I made the change to RecordGrid.php with no change in the problem. Still get a page with a lot of errors and code showing up all over the page. Mixed in with the header and Dataface logo etc.

P


paulkruger — Thu Jun 28, 2007 7:10 am

I made the change to RecordGrid.php with no change in the problem. Still get a page with a lot of errors and code showing up all over the page. Mixed in with the header and Dataface logo etc.

P

Just getting rid of the red…


paulkruger — Thu Jun 28, 2007 7:15 am

I made the change to RecordGrid.php with no change in the problem. Still get a page with a lot of errors and code showing up all over the page. Mixed in with the header and Dataface logo etc.


paulkruger — Thu Jun 28, 2007 7:17 am

I made the change to RecordGrid.php with no change in the problem. Still get a page with a lot of errors and code showing up all over the page. Mixed in with the header and Dataface logo etc.


shannah — Thu Jun 28, 2007 7:41 am

Hi Paul,

“A page full of errors” is not too helpful for troubleshooting. Please let us know what the errors are.

-Steve


paulkruger — Thu Jun 28, 2007 7:09 am

I made the change to RecordGrid.php with no change in the problem. Still get a page with a lot of errors and code showing up all over the page. Mixed in with the header and Dataface logo etc.

P


paulkruger — Thu Jun 28, 2007 7:10 am

I made the change to RecordGrid.php with no change in the problem. Still get a page with a lot of errors and code showing up all over the page. Mixed in with the header and Dataface logo etc.

P

Just getting rid of the red…


paulkruger — Thu Jun 28, 2007 7:15 am

I made the change to RecordGrid.php with no change in the problem. Still get a page with a lot of errors and code showing up all over the page. Mixed in with the header and Dataface logo etc.


paulkruger — Thu Jun 28, 2007 7:17 am

I made the change to RecordGrid.php with no change in the problem. Still get a page with a lot of errors and code showing up all over the page. Mixed in with the header and Dataface logo etc.


shannah — Thu Jun 28, 2007 7:41 am

Hi Paul,

“A page full of errors” is not too helpful for troubleshooting. Please let us know what the errors are.

-Steve


shannah — Thu Jun 28, 2007 7:54 am

Actually. I just checked out your link, and it isn’t giving me any errors. Are you referring to the “Block xxx” stuff that is interspersed throughout the page? Those are there because you have turned on debug mode in the conf.ini file. Comment out the line of the conf.ini file that says:
debug=1

i.e. change it to
;debug=1

Note the semi colon

-Steve


harry — Wed Jul 25, 2007 8:07 am

Hi,
Can anyone help me ?
I get the following message

Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 305123 is not allowed to access /customers/2four24.com/2four24.com owned by uid 0 in /customers/2four24.com/2four24.com/httpd.www/install.php on line 47

Thanks if someone can help me
Harry


harry — Wed Jul 25, 2007 8:38 am

I am desperate,

Now I get all of this

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 305123 is not allowed to access /tmp owned by uid 0 in /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Application.php on line 556

Warning: ini_set() [function.ini-set]: SAFE MODE Restriction in effect. The script whose uid is 305123 is not allowed to access /tmp owned by uid 0 in /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Application.php on line 557

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Application.php:556) in /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Application.php on line 559

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Application.php:556) in /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Application.php on line 559

Fatal error: Error performing mysql query to get column information from table ‘products’. The mysql error returned was : ‘Table ‘2four24_com.products’ doesn’t exist’.
On line 404 of file /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Table.php in function printStackTrace()
On line 1893 of file /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Table.php in function Dataface_Table(products,Resource id #12,)
On line 678 of file /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Application.php in function loadTable(products)
On line 1287 of file /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Application.php in function handleRequest()
On line 11 of file /customers/2four24.com/2four24.com/httpd.www/index.php in function display()
in /customers/2four24.com/2four24.com/httpd.www/dataface-0.7.1/Dataface/Table.php on line 404


shannah — Wed Jul 25, 2007 10:27 am

Hi,

Looks like your server has SAFE mode in effect. Currently Dataface has some issues working with SAFE mode, and I haven’t had a chance to try to resolve them. One key problem is that with SAFE mode it mucks with the creation of directories, and dataface needs to create some directories in the templates_c directory to organize its templates.

Here is a quote from the PHP manual page on safe mode:

The PHP safe mode is an attempt to solve the shared-server security problem. It is architecturally incorrect to try to solve this problem at the PHP level, but since the alternatives at the web server and OS levels aren’t very realistic, many people, especially ISP’s, use safe mode for now.

Since this was written, there are lots of options to solve this problem inside the operation system. And most web hosts don’t need to use safe mode anymore. Of course some hosts still use it because they don’t want to fix what ain’t broken (in their mind).

PHP 6 has removed safe mode, so it looks like the days of safe mode are over.

I.e. I’m not sure how much energy I want to put into solving the safe mode problem….

Best regards

Steve


harry — Wed Jul 25, 2007 1:19 pm

Hi Steve,

Thank you for explaning. I am not an expert in this kind of things but I think I understand.
Maybe it’s better to swicth from hosting company and try again.
I have hosting at www.one.com but it seems that they have a lot of problems with some scripts.
I will look for other hosting and keep you updated.
Can you recomend me some good hosting company’s ?

Thanks
Harry


shannah — Wed Jul 25, 2007 1:52 pm

Hi Harry,

There are too many web hosts out there to keep track of. Most of them will do the job for you. I have worked with the following web hosts and found them to be pretty good.

  1. westhost.com (I use these guys for most of my servers).

  2. doteasy.com (these guys are nice and cheap and pretty “user-friendly”)

  3. pair.com (These guys are a major player with PHP - they host a bunch of PHP project sites, etc… I have one client who uses these guys and they seem pretty good).

Features that are a *must* on web hosts that I choose are:

  1. No php safe mode. (i.e. php should not be running in safe mode).

Features that are *nice to have*:

  1. SSH support. (This is nice for uploading files. The ability to upload an entire gzip archive and then extract it on the server, rather than having to upload the files individually can save many hours).

  2. Virtual Private Server (this is for power users who want to be able to install other types of servers and services on their web space other than PHP/Apache. For example if you wanted to install a video server, or an alternative web server, you could do that if you had a virtual private server – but for the average user you won’t need this).

Hope this helps a little.

-Steve


harry — Thu Jul 26, 2007 2:17 am

Thanks steve,

I am looking into it now,
I will keep you updated

Harry


evlthecat — Mon Oct 08, 2007 1:13 pm

Adding one more to the list of free\pay web hosts.

x10hosting.com: 300MB free no Adds.. Dataface and webauction installed in 30 Meg

One thing, you must request an upgrade to php configuration. In their account manager request: “Intermediate PHP Configuration”

They are really good to work with, had Dataface and webauction up and running in an hour without any issues. I shed a tear. You guys are doing a great job on development\support\everything.


shannah — Fri Dec 07, 2007 12:51 pm

Just thought I’d add a link to Westhost. I’ve been using them for a couple of years with no complaints. I particularly like their VPS (virtual private server) technology that makes it like I have my own dedicated server with root-like access.

I have their dedicated hosting plan that allows me to set up pretty much unlimited virtual servers, but plans start at as low as like $7 per month.


shannah — Wed Jul 25, 2007 1:52 pm

Hi Harry,

There are too many web hosts out there to keep track of. Most of them will do the job for you. I have worked with the following web hosts and found them to be pretty good.

  1. westhost.com (I use these guys for most of my servers).

  2. doteasy.com (these guys are nice and cheap and pretty “user-friendly”)

  3. pair.com (These guys are a major player with PHP - they host a bunch of PHP project sites, etc… I have one client who uses these guys and they seem pretty good).

Features that are a *must* on web hosts that I choose are:

  1. No php safe mode. (i.e. php should not be running in safe mode).

Features that are *nice to have*:

  1. SSH support. (This is nice for uploading files. The ability to upload an entire gzip archive and then extract it on the server, rather than having to upload the files individually can save many hours).

  2. Virtual Private Server (this is for power users who want to be able to install other types of servers and services on their web space other than PHP/Apache. For example if you wanted to install a video server, or an alternative web server, you could do that if you had a virtual private server – but for the average user you won’t need this).

Hope this helps a little.

-Steve


harry — Thu Jul 26, 2007 2:17 am

Thanks steve,

I am looking into it now,
I will keep you updated

Harry


evlthecat — Mon Oct 08, 2007 1:13 pm

Adding one more to the list of free\pay web hosts.

x10hosting.com: 300MB free no Adds.. Dataface and webauction installed in 30 Meg

One thing, you must request an upgrade to php configuration. In their account manager request: “Intermediate PHP Configuration”

They are really good to work with, had Dataface and webauction up and running in an hour without any issues. I shed a tear. You guys are doing a great job on development\support\everything.


shannah — Fri Dec 07, 2007 12:51 pm

Just thought I’d add a link to Westhost. I’ve been using them for a couple of years with no complaints. I particularly like their VPS (virtual private server) technology that makes it like I have my own dedicated server with root-like access.

I have their dedicated hosting plan that allows me to set up pretty much unlimited virtual servers, but plans start at as low as like $7 per month.