Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Zend framework problem, Problem po przeniesieniu strony
tomacha22
post 2.11.2023, 11:51:05
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 2.11.2023

Ostrzeżenie: (0%)
-----


Przeniosłem stronę na hosting i pokazuje mi błędy.
Strona zrobiona przez firmę zewnętrzną.
Zend Framework
BAZA MY SQL wersja 8.0
Proszę o pomoc lub podpowiedz gdzie szukać.
Z góry dziękuję.

Mam taki problem. Przeniosłem całą zawartość witryny z hostingu w home.pl na swój własny serwer również w home.pl.
Wpisy w application.ini poprawiłem na zgodne z moją bazą danych.
Na wersji pierwotnej witryny baza była w wersji 5.7 u siebie zmigrowałem ją do wersji 8.0
Problem jest taki ze przy wywołaniu witryny wczytuje się tylko adres strony i nic poza tym pusta biała strona.
Nie miałem styczności z zend framework - może ktoś podpowie
poniżej zamieszczam wygląd moich plików:

Application.ini:

[development]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
phpSettings.log_errors = 1
phpSettings.error_log = APPLICATION_PATH "/data/logs/php.log"
resources.frontController.params.displayExceptions = 1
resources.frontController.throwErrors = 1

resources.frontController.params.displayExceptions = 1

Autoloadernamespaces[] = "Zend_"
Autoloadernamespaces[] = "Application_"
Autoloadernamespaces[] = "Image_"
Autoloadernamespaces[] = "Frontend_"
Autoloadernamespaces[] = "Backend_"

settings.application.name = "moja strona"
settings.application.datetime = "Europe/Warsaw"

resources.locale.default = "pl"

resources.translate.registry_key = "Zend_Translate"
resources.translate.adapter = "csv"
resources.translate.data = APPLICATION_PATH "/data/locales"
resources.translate.options.scan = "filename"
resources.translate.locale = pl

resources.frontController.moduleDirectory = APPLICATION_PATH"/modules"
resources.frontController.defaultModule = "frontend"
resources.frontController.plugins.language = "Application_Plugin_Language"
resources.frontController.plugins.updateController = "Application_Plugin_UpdateController"
resources.frontController.plugins.rewrite = "Application_Plugin_Rewrite"

resources.modules[] = ""
resources.layout.layout = "layout"
resources.layout.pluginClass = "Application_Plugin_ModuleBasedLayout"

resources.view.doctype = "HTML5"
resources.view.charset = "UTF-8"
resources.view.basePath = APPLICATION_PATH "/views/"

bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"

resources.db.adapter = PDO_MYSQL
resources.db.params.host = localhost
resources.db.params.username = root
resources.db.params.password = ""
resources.db.params.dbname = nazwa
resources.db.params.charset = "utf8"
resources.db.params.default = true
resources.db.params.profiler.enabled = true

resources.db.params.driver_options.1002 = "SET NAMES utf8"
resources.db.isDefaultTableAdapter = true

resources.session.save_path = APPLICATION_PATH "/data/sessions"
resources.session.remember_me_seconds = 3600
resources.session.cookie_lifetime = 3600
resources.session.gc_maxlifetime = 3600

resources.log.stream.writerName = "Stream"
resources.log.stream.writerParams.stream = APPLICATION_PATH "/data/logs/application.log"
resources.log.stream.formatterName = "Simple"
resources.log.stream.filterName = "Priority"
resources.log.stream.filterParams.priority = 7

[production : development]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
resources.frontController.params.displayExceptions = 0
resources.frontController.throwErrors = 0

resources.db.params.username = nazwa_baza
resources.db.params.password = "hasło"
resources.db.params.dbname = nazwa_baza


PHP.LOG

Next Zend_Controller_Exception: No entry is registered for key 'locale_id'#0 /library/Application/Db/Table.php(12): Zend_Registry::get('locale_id')
#1 /app/modules in /library/Zend/Controller/Plugin/Broker.php on line 312
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /library/Zend/Registry.php on line 206
[30-Oct-2023 09:37:48 Europe/Warsaw] PHP Fatal error: Uncaught Zend_Exception: No entry is registered for key 'locale_id' in /library/Zend/Registry.php:147
Stack trace:
#0 /library/Application/Db/Table.php(12): Zend_Registry::get('locale_id')
#1 /app/modules/frontend/models/Settings.php(19): Application_Db_Table->__construct()
#2 /library/Application/Plugin/UpdateController.php(10): Frontend_Model_Settings::factory()
#3 /library/Zend/Controller/Plugin/Broker.php(309): Application_Plugin_UpdateController->preDispatch(Object(Zend_Controller_Request_Http))
#4 /library/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http))
#5 /library/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#6 /library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#7 /index.php(44): Zend_Application->run()
#8 {main}

Next Zend_Controller_Exception: No entry is registered for key 'locale_id'#0 /library/Application/Db/Table.php(12): Zend_Registry::get('locale_id')
#1 /app/modules in /library/Zend/Controller/Plugin/Broker.php on line 312

Załączam jeszcze htaccess:

<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=Edge,chrome=1"
# mod_headers can't match by content-type, but we don't want to send this header on *everything*...
<FilesMatch "\.(js|css|gif|png|jpe?g|JPG|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|ap
pcache|manifest|htc|crx|oex|xpi|safariextz|vcf)$" >
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>

AddType application/javascript js

# Audio
AddType audio/ogg oga ogg
AddType audio/mp4 m4a

# Video
AddType video/ogg ogv
AddType video/mp4 mp4 m4v
AddType video/webm webm

# SVG
# Required for svg webfonts on iPad
# twitter.com/FontSquirrel/status/156546655657
AddType image/svg+xml svg svgz
AddEncoding gzip svgz png

# Webfonts
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttf ttc
AddType font/opentype otf
AddType application/x-font-woff woff

# Assorted types
AddType image/x-icon ico
AddType image/webp webp
AddType text/cache-manifest appcache manifest
AddType text/x-component htc
AddType application/x-chrome-extension crx
AddType application/x-opera-extension oex
AddType application/x-xpinstall xpi
AddType application/octet-stream safariextz
AddType application/x-web-app-manifest+json webapp
AddType text/x-vcard vcf

<IfModule mod_deflate.c>

# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>

# HTML, TXT, CSS, JavaScript, JSON, XML, HTC:
<IfModule filter_module>
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $image/x-icon
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
FilterChain COMPRESS
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
</IfModule>

<IfModule !mod_filter.c>
# Legacy versions of Apache
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
</IfModule>

</IfModule>

<IfModule mod_expires.c>
ExpiresActive on

# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"

# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"

# Your document html
ExpiresByType text/html "access plus 0 seconds"

# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"

# Feed
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"

# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"

# Media: images, video, audio
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"

# HTC files (css3pie)
ExpiresByType text/x-component "access plus 1 month"

# Webfonts
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"

# CSS and JavaScript
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"

</IfModule>

# FileETag None is not enough for every server.
<IfModule mod_headers.c>
Header unset ETag
</IfModule>

# Since we're sending far-future expires, we don't need ETags for
# static content.
# developer.yahoo.com/performance/rules.html#etags
FileETag None

Options +Indexes +MultiViews +FollowSymLinks
RewriteEngine On
RewriteBase /


RewriteRule !.(js|css|ico|gif|jpg|JPG|png|swf|txt|xml|html|php|pdf|zip|woff|ttf|svg|eot)$ index.php
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset utf-8

# Force UTF-8 for a number of file formats
AddCharset utf-8 .css .js .xml .json .rss .atom

<IfModule php5_module>
php_value session.cookie_httponly true
</IfModule>



Ten post edytował tomacha22 2.11.2023, 11:49:35
Go to the top of the page
+Quote Post
viking
post 2.11.2023, 16:59:36
Post #2





Grupa: Zarejestrowani
Postów: 6 365
Pomógł: 1114
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


Zend 1 miał problemy z działaniem na nowszej wersji php. Na jakiej wersji uruchamiasz?


--------------------
Go to the top of the page
+Quote Post
tomacha22
post 3.11.2023, 08:32:40
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 2.11.2023

Ostrzeżenie: (0%)
-----


Obecnie mam włączoną wersję 7.4
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 27.04.2024 - 22:11