Sponsored Content
Top Forums Shell Programming and Scripting Test Server - Forum Code Changes for PHP 5.3.10 to PHP 7 Post 303009577 by Neo on Saturday 16th of December 2017 06:13:33 AM
Old 12-16-2017
#4 /profile.php?do=updateprofile

Another PHP 7 issue from PHP 5:

Code:
Warning: Declaration of vB_DataManager_User::save($doquery = true, $delayed = false) 
should be compatible with vB_DataManager::save($doquery = true, $delayed = false,
 $affected_rows = false, $replace = false, $ignore = false) in [path]/includes/class_dm_user.php on line 2968

Warning: Declaration of vB_DataManager_User_Multiple::fetch_query($condition, $limit = 0, $offset = 0) 
should be compatible with vB_DataManager_Multiple::fetch_query($condition = '', $limit = 0, $offset = 0) 
in [path]/includes/class_dm_user.php on line 3119

Which seems to result in vB MySQL error:

Code:
Database error in vBulletin 3.8.9:

Invalid SQL:
UPDATE user SET
	parentemail = '',
	icq = '',
	msn = '',
	aim = '',
	yahoo = '',
	skype = '',
	homepage = 'https://www.unix.com',
	birthday_search = '',
	birthday = '',
	showbirthday = 0,
	usertitle = 'Administrator',
	customtitle = 1,
	facebook = 'unixlinuxhq',
	myspace = '',
	twitter = 'unixlinux',
	youtube = 'UnixTutorials',
	linkedin = '',
	hyves = ''
WHERE userid = 1;

MySQL Error   : Incorrect date value: '' for column 'birthday_search' at row 1
Error Number  : 1292

Which my PHP 7 compatibility tool (php7mar) indicates only this:

Code:
#### /var/www/includes/class_dm_user.php
* oldClassConstructors
 * Line 181: `  function vB_DataManager_User(&$registry, $errtype = ERRTYPE_STANDARD)`

... miles and miles to go before i sleep, and promises to keep ....
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hiding PHP code on the server

Hi all, Sometime back, had put up a Q regarding hiding perl code. A: There is a utility known as 'pp' which comes along with PAR. Downloaded from CPAN. These people have done wonderful work I must say. Cool executables from perl scripts. Have one more... (4 Replies)
Discussion started by: sudhir_onweb
4 Replies

2. Web Development

I can't open my index.php page after insert php code

Hello guys, Does anyone can help me? I've just made my simple index.php without any code, but after insert session code to check if any user is authenticated, my index.php doesn't work anymore. Any fresh eyes could help me to see what and where the code is wrong? <? if... (6 Replies)
Discussion started by: metalfreakbr
6 Replies

3. Web Development

[PHP] Server Check and Failover Code

Here is some sample PHP code you can run if you have a PHP web application that uses code or images from an ad server, image server, or content deliver network, and you want to check if it is working and if not, failover to another one: <?php $current_server = "server.domain.com"; // set... (0 Replies)
Discussion started by: Neo
0 Replies

4. Shell Programming and Scripting

php code - Sending mail with external SMTP server

Here is the code: <?php //new function function loadini($path) { $fp = fopen($path, "r"); $fpcontents = fread($fp, filesize($path)); fclose($fp); return $fpcontents; } $to = "test@test.com"; $nameto = "notme"; $from = "test"; $namefrom = "Who From"; ... (0 Replies)
Discussion started by: galford
0 Replies

5. Shell Programming and Scripting

PHP - add rm %dir to php code

Hello everyone, I'm trying to modify a php file to perform 2 actions in an if statement. // If the delete button is pressed if(isset($_GET) && isset($_GET)) { if(!mysql_query("DELETE FROM users WHERE User='".$_GET."'",$link)) ... (2 Replies)
Discussion started by: da1
2 Replies

6. Web Development

PHP Changes to WOL for New Forum Home Page

Wrote some PHP code today to make the Who Is Online (WOL) in the forums work properly with the new home page: Wrote this global plugin to add the location to both the user table (for members) and session table (for guests + registered users) <?php if (THIS_SCRIPT != 'misc' and... (0 Replies)
Discussion started by: Neo
0 Replies
php-config(1)                                                   Scripting Language                                                   php-config(1)

NAME
php-config - get information about PHP configuration and compile options SYNOPSIS
php-config [options] DESCRIPTION
php-config is a simple shell script for obtaining information about installed PHP configuration. OPTIONS
--prefix Directory prefix where PHP is installed, e.g. /usr/local --includes List of -I options with all include files --ldflags LD Flags which PHP was compiled with --libs Extra libraries which PHP was compiled with --man-dir The directory prefix where the manpages is installed --extension-dir Directory where extensions are searched by default --include-dir Directory prefix where header files are installed by default --php-binary Full path to php CLI or CGI binary --php-sapis Show all SAPI modules installed on the Debian system --configure-options Configure options to recreate configuration of current PHP installation --version PHP version --vernum PHP version as integer SEE ALSO
php(1) VERSION INFORMATION
This manpage describes php, version 7.0.33-6+ubuntu18.04.1+deb.sury.org+3. COPYRIGHT
Copyright (C) 1997-2017 The PHP Group This source file is subject to version 3.01 of the PHP license, that is bundled with this package in the file LICENSE, and is available through the world-wide-web at the following url: http://www.php.net/license/3_01.txt If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to license@php.net so we can mail you a copy immediately. The PHP Group 2017 php-config(1)
All times are GMT -4. The time now is 01:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy