CONTENTS


Lastmodified 2019-01-17 (木) 10:52:56


PHP 5.6.39 ⇒ PHP 7.*

Fatal error: Uncaught Error: Call to undefined function mysql_error() in /usr/home/tfc/public_html/openpne/lib/include/DB/mysql.php:249 Stack trace: #0 /usr/home/tfc/public_html/openpne/lib/include/DB.php(556): DB_mysql->connect(Array, false) #1 /usr/home/tfc/public_html/openpne/webapp/lib/OpenPNE/DB.php(60): DB::connect(Array) #2 /usr/home/tfc/public_html/openpne/webapp/lib/OpenPNE/DB.php(35): OpenPNE_DB->_connect() #3 /usr/home/tfc/public_html/openpne/webapp/lib/db/common.php(21): OpenPNE_DB->OpenPNE_DB(Array, false) #4 /usr/home/tfc/public_html/openpne/webapp/lib/db/common.php(18): db_get_instance() #5 /usr/home/tfc/public_html/openpne/webapp/lib/db/common.php(127): db_get_instance('main_reader', true) #6 /usr/home/tfc/public_html/openpne/webapp/lib/OpenPNE/Config.php(94): db_get_all('SELECT * FROM c...') #7 /usr/home/tfc/public_html/openpne/webapp/init.inc(94): OpenPNE_Config->db_load_config() #8 /usr/home/tfc/public_html/openpne/public_html/index.php(8): require_once('/usr/home/tfc/p...') #9 {main} thrown in /usr/home/tfc/public_html/openpne/lib/include/DB/mysql.php on line 249

OpenPNE2.14 to 3.6

unzip openpne-OpenPNE3-OpenPNE-3.6.32.zip

chown -R www:www openpne-OpenPNE3-47251b6

mv openpne-OpenPNE3-47251b6 OpenPNE3632

cp config/ProjectConfiguration.class.php.sample config/ProjectConfiguration.class.php

cp config/OpenPNE.yml.sample config/OpenPNE.yml

vi OpenPNE.yml

######################################
# 基本設定 (Basic)
######################################

# SNS の URL
# URL of the SNS
#base_url: "http://example.com"
base_url: "https://mail.smb.net/~openpne/"

######################################
# メール (Mail)
######################################

# SNS からのメール送信に使うドメイン
# Domain to use for sending e-mail from the SNS
#mail_domain: "example.com"
mail_domain: "smb.net"

cp /usr/home/openpne/config.php /usr/home/OpenPNE3632/config/config.OpenPNE2.php

./symfony opPlugin:sync

>> sfPearFrontendPlugin Attempting to discover channel "plugins.openpne.jp"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (796 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 796 bytes
>> sfPearFrontendPlugin Auto-discovered channel "plugins.openpne.jp", alias
>> sfPearFrontendPlugin "plugins.openpne.jp", adding to registry
>> plugin    installing plugin "opAuthMailAddressPlugin"
>> sfPearFrontendPlugin downloading opAuthMailAddressPlugin-1.3.6.tgz ...
>> sfPearFrontendPlugin Starting to download opAuthMailAddressPlugin-1.3.6.tgz (17,707
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 17,707 bytes
>> sfPearFrontendPlugin Package "plugins.openpne.jp/opAuthMailAddressPlugin"
>> sfPearFrontendPlugin dependency "plugins.openpne.jp/openpne" has no releases
>> opPluginManager Installation successful for plugin "opAuthMailAddressPlugin"
>> plugin    installing plugin "opAuthMobileUIDPlugin"
>> sfPearFrontendPlugin downloading opAuthMobileUIDPlugin-1.3.3.tgz ...
>> sfPearFrontendPlugin Starting to download opAuthMobileUIDPlugin-1.3.3.tgz (9,300
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 9,300 bytes
>> opPluginManager Installation successful for plugin "opAuthMobileUIDPlugin"
>> plugin    installing plugin "opAuthOpenIDPlugin"
>> sfPearFrontendPlugin downloading opAuthOpenIDPlugin-1.3.1.tgz ...
>> sfPearFrontendPlugin Starting to download opAuthOpenIDPlugin-1.3.1.tgz (9,544
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 9,544 bytes
>> sfPearFrontendPlugin Package "plugins.openpne.jp/opAuthOpenIDPlugin" dependency
>> sfPearFrontendPlugin "plugins.openpne.jp/openpne" has no releases
>> opPluginManager Installation successful for plugin "opAuthOpenIDPlugin"
>> plugin    installing plugin "opCommunityTopicPlugin"
>> sfPearFrontendPlugin downloading opCommunityTopicPlugin-1.0.5.1.tgz ...
>> sfPearFrontendPlugin Starting to download opCommunityTopicPlugin-1.0.5.1.tgz
>> sfPearFrontendPlugin (70,352 bytes)
>> sfPearFrontendPlugin ...done: 70,352 bytes
>> opPluginManager Installation successful for plugin "opCommunityTopicPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opWebAPIPlugin"
>> sfPearFrontendPlugin downloading opWebAPIPlugin-0.5.1.2.tgz ...
>> sfPearFrontendPlugin Starting to download opWebAPIPlugin-0.5.1.2.tgz (18,555 bytes)
>> sfPearFrontendPlugin ...done: 18,555 bytes
>> opPluginManager Installation successful for plugin "opWebAPIPlugin"
>> plugin    installing plugin "opDiaryPlugin"
>> sfPearFrontendPlugin downloading opDiaryPlugin-1.4.1.1.tgz ...
>> sfPearFrontendPlugin Starting to download opDiaryPlugin-1.4.1.1.tgz (50,693 bytes)
>> sfPearFrontendPlugin ...done: 50,693 bytes
>> sfPearFrontendPlugin Package "plugins.openpne.jp/opDiaryPlugin" dependency
>> sfPearFrontendPlugin "plugins.openpne.jp/openpne" has no releases
>> opPluginManager Installation successful for plugin "opDiaryPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opBlogPlugin"
>> sfPearFrontendPlugin downloading opBlogPlugin-1.0.3.tgz ...
>> sfPearFrontendPlugin Starting to download opBlogPlugin-1.0.3.tgz (77,548 bytes)
>> sfPearFrontendPlugin ...done: 77,548 bytes
>> opPluginManager Installation successful for plugin "opBlogPlugin"
>> plugin    installing plugin "opOpenSocialPlugin"
>> sfPearFrontendPlugin downloading opOpenSocialPlugin-1.2.6.1.tgz ...
>> sfPearFrontendPlugin Starting to download opOpenSocialPlugin-1.2.6.1.tgz (543,058
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 543,058 bytes
>> sfPearFrontendPlugin Attempting to discover channel "pear.symfony-project.com"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (865 bytes)
>> sfPearFrontendPlugin ...done: 865 bytes
>> sfPearFrontendPlugin Auto-discovered channel "pear.symfony-project.com", alias
>> sfPearFrontendPlugin "symfony", adding to registry
>> sfPearFrontendPlugin Package "plugins.openpne.jp/opOpenSocialPlugin" dependency
>> sfPearFrontendPlugin "pear.symfony-project.com/symfony" has no releases
>> opPluginManager Installation successful for plugin "opOpenSocialPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opAshiatoPlugin"
>> sfPearFrontendPlugin downloading opAshiatoPlugin-1.1.1.tgz ...
>> sfPearFrontendPlugin Starting to download opAshiatoPlugin-1.1.1.tgz (12,170 bytes)
>> sfPearFrontendPlugin ...done: 12,170 bytes
>> opPluginManager Installation successful for plugin "opAshiatoPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opMessagePlugin"
>> sfPearFrontendPlugin downloading opMessagePlugin-1.0.0.tgz ...
>> sfPearFrontendPlugin Starting to download opMessagePlugin-1.0.0.tgz (34,163 bytes)
>> sfPearFrontendPlugin ...done: 34,163 bytes
>> opPluginManager Installation successful for plugin "opMessagePlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opAlbumPlugin"
>> sfPearFrontendPlugin downloading opAlbumPlugin-0.9.4.1.tgz ...
>> sfPearFrontendPlugin Starting to download opAlbumPlugin-0.9.4.1.tgz (17,936 bytes)
>> sfPearFrontendPlugin ...done: 17,936 bytes
>> opPluginManager Installation successful for plugin "opAlbumPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> plugin    installing plugin "opIntroFriendPlugin"
>> sfPearFrontendPlugin downloading opIntroFriendPlugin-1.0.0.1.tgz ...
>> sfPearFrontendPlugin Starting to download opIntroFriendPlugin-1.0.0.1.tgz (17,642
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 17,642 bytes
>> opPluginManager Installation successful for plugin "opIntroFriendPlugin"
>> plugin    installing plugin "opFavoritePlugin"
>> sfPearFrontendPlugin downloading opFavoritePlugin-1.0.1.1.tgz ...
>> sfPearFrontendPlugin Starting to download opFavoritePlugin-1.0.1.1.tgz (13,855
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin ...done: 13,855 bytes
>> opPluginManager Installation successful for plugin "opFavoritePlugin"
>> plugin    installing plugin "opRankingPlugin"
>> sfPearFrontendPlugin downloading opRankingPlugin-1.0.1.tgz ...
>> sfPearFrontendPlugin Starting to download opRankingPlugin-1.0.1.tgz (10,865 bytes)
>> sfPearFrontendPlugin ...done: 10,865 bytes
>> opPluginManager Installation successful for plugin "opRankingPlugin"
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin
>> opPluginManager Installing web data for plugin

./symfony openpne:permission

>> chmod 777 /usr/home/OpenPNE3632/cache
>> chmod 777 /usr/home/OpenPNE3632/log
>> chmod 777 /usr/home/OpenPNE3632/symfony
>> chmod 777 /usr/home/OpenPNE3632/cache/config
>> chmod 777 /usr/home/OpenPNE3632/cache/.pear
>> chmod 777 /usr/home/OpenPNE3632/cache/.pear/opAuthMailAddressPlugin-1.3.6
>> chmod 777 /usr/home/OpenPNE3632/cache/.pear/opAuthMailAddressPlugin-1.3.6/apps
>> chmod 777 /usr/home/OpenPNE3632/cache/.pear/opAuthMailAddressPlugin-1.3.6/apps/mobile_frontend
                 :                :
>> chmod 666 /usr/home/OpenPNE3632/cache/project_autoload.cache
>> chmod 666 /usr/home/OpenPNE3632/log/.gitignore
>> dir+      /usr/home/OpenPNE3632/web/cache
>> chmod 777 /usr/home/OpenPNE3632/web/cache

./symfony openpne:upgrade-from-2 --origin=2.14

>> upgrade   Begin upgrading from 2.x
>> upgrade   Processing build_model
>> upgrade   Processed build_model (6.39 sec)
>> upgrade   Processing create_tables
>> upgrade   Processed create_tables (1.27 sec)
>> upgrade   Processing member_basic
>> upgrade   Processed member_basic (0.02 sec)
>> upgrade   Processing files
                   : : :
>> upgrade   Processing login_layout
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'external_pc_login_url' for key 'name_UNIQUE_idx'
>> upgrade   Processed login_layout (0.18 sec)
>> upgrade   Processing fix_old_image_data

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2955488 bytes) in /usr/home/OpenPNE3632/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/Statement.php on line 257

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2955488 bytes) in /usr/home/OpenPNE3632/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/Statement.php on line 257



./symfony openpne:upgrade-from-2 --origin=2.14 --rules=fix_old_image_data

>> upgrade   Begin upgrading from 2.x
>> upgrade   Processing fix_old_image_data
>> upgrade   Processed fix_old_image_data (1624.83 sec)
>> upgrade   Completed Upgrading (1624.83 sec)
>> upgrade   The 47.25 MB memory allocated
>> plugin    Configuring plugin - opAlbumPlugin
>> plugin    Configuring plugin - opAshiatoPlugin
>> plugin    Configuring plugin - opAuthMailAddressPlugin
>> plugin    Configuring plugin - opAuthMobileUIDPlugin
>> plugin    Configuring plugin - opAuthOpenIDPlugin
>> plugin    Configuring plugin - opBlogPlugin
>> plugin    Configuring plugin - opCommunityTopicPlugin
>> plugin    Configuring plugin - opDiaryPlugin
>> plugin    Configuring plugin - opFavoritePlugin
>> plugin    Configuring plugin - opIntroFriendPlugin
>> plugin    Configuring plugin - opMessagePlugin
>> plugin    Configuring plugin - opOpenSocialPlugin
>> plugin    Configuring plugin - opRankingPlugin
>> plugin    Configuring plugin - opSkinBasicPlugin
>> link+     /usr/home/OpenPNE3632/web/opSkinBasicPlugin
>> plugin    Configuring plugin - opSkinClassicPlugin
>> link+     /usr/home/OpenPNE3632/web/opSkinClassicPlugin
>> plugin    Configuring plugin - opWebAPIPlugin
>> plugin    Configuring plugin - sfDoctrinePlugin
>> link+     /usr/home/OpenPNE3632/web/sfDoctrinePlugin
>> plugin    Configuring plugin - sfFormExtraPlugin
>> link+     /usr/home/OpenPNE3632/web/sfFormExtraPlugin
>> plugin    Configuring plugin - sfImageHandlerPlugin
>> plugin    Configuring plugin - sfProtoculousPlugin
>> link+     /usr/home/OpenPNE3632/web/sfProtoculousPlugin
>> plugin    Configuring plugin - sfSymfonyTemplatingViewPlugin

./symfony openpne:upgrade-from-2 --origin=2.14 --rules=create_tables

>> upgrade   Begin upgrading from 2.x
>> upgrade   Processing create_tables
SQLSTATE[HY000]: General error: 1005 Can't create table 'PNE2.#sql-3e7_a3' (errno: 121). Failing Query: "ALTER TABLE activity_data ADD CONSTRAINT activity_data_member_id_member_id FOREIGN KEY (member_id) REFERENCES member(id) ON DELETE CASCADE". Failing Query: ALTER TABLE activity_data ADD CONSTRAINT activity_data_member_id_member_id FOREIGN KEY (member_id) REFERENCES member(id) ON DELETE CASCADE
>> upgrade   Processed create_tables (0.47 sec)

Total access 1065:本日 1:昨日 0

Counter: 1065, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS