I am using Prestashop 1.6.1.4 and all seem to be working fine except escaping json returned data from ajax call.
Using blocklayered navigation giving error 500 when trying to render/escape json data from server to product-list.tpl.
Regular pages which use the same file (product-list.tpl) working just fine.
The error I am getting is:
Undefined index: escape in
/home/xxx/public_html/cache/smarty/compile/e4/a1/fd/e4a1fd2f5285aae65055ce86ad9af69b31b94166.file.product-list.tpl.php
on line 95 Fatal error: Call to a member
function escape() on a non-object in
/home/xxx/public_html/cache/smarty/compile/e4/a1/fd/e4a1fd2f5285aae65055ce86ad9af69b31b94166.file.product-list.tpl.php
on line 95
This is a brand new server and at the beginning I had also an issue when trying to truncate chars so I had to install mbstring thru EasyApache 3 and everything was fixed.
My guess is that I am missing some mod/extension/plugin for Apache or PHP.
Any help will be apreciated.
It end up being a mod_security issue.
I disabled Apache mod_security and now everything works.
Thank you very much
Related
After an automatic update to my WordPress installation, my website is display this error rather than loading.
Deprecated: File wp-db.php is deprecated since version 6.1.0! Use wp-includes/class-wpdb.php instead. in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/functions.php on line 5595
Warning: require(/home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/class-wp-dependencies.php): failed to open stream: No such file or directory in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/script-loader.php on line 23
Fatal error: require(): Failed opening required '/home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/class-wp-dependencies.php' (include_path='.:/usr/share/pear/') in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/script-loader.php on line 23
Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/functions.php on line 5835
Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/functions.php on line 5835
There has been a critical error on this website.
Can someone help me understand this error, and provide me a solution or some hints so that I can figure a fix for this.
I also had the same problem currently. So here's how I fixed it.
Go to your Website's App Installer > Wordpress > and find something like this
https://i.stack.imgur.com/xvhm0.png
Click the one in the blue box i drew at the right (Wordpress Manager)
Then, there you can update wordpress
Hope it helped!
i solved it just by updating all plugins, idk why it worked but you can give it a try.
I'm currently trying to connect to a MSSQL database, but from what i've read so far, there are actually extensions and files that i need to download from microsoft itself which i've went and download it here.
https://www.microsoft.com/en-us/download/details.aspx?id=20098
The error that i'm receiving currently receiving is the following.
Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\index.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\index.php on line 5
As far as i understand, i know that i'm supposed to append some extensions into the php.ini located in my xampp\php\php.ini file. However, even after appending the file from microsoft, i still can't seem to get connected.
I heard some people mentioned that the php version that i'm using which is currently PHP Version 7.1.1 has some issues connecting back to MSSQL databases but i'm not entirely sure.
Would someone be able to point me to right direction? i've tried looking up and down appending different files into the extension but i still can't seem to do it.
Thank you very much in advance.
edit:
PHP 7 on IIS: Call_user_function could not be located
i've also visited this link, however i'm unsure whether if this is related to the issue I have as i'm on 7.1
When working on my webpage, I reloaded twice to check the results after editing... and got this error when trying to acces my localhost database page:
Fatal error: Call to undefined function PMA_SQP_parse() in C:\xampp\phpMyAdmin\libraries\Util.class.php on line 1126
When I google for this issue, I only find 6 results, and I don't think any of the 6 would resolve my issue.
Has anyone had this issue before? I've looked on the PHPMyAdmin page, for support.. but the only result is them saying I have to ask my issue here...
Try clearing session storage for your phpmyadmin domain
Well, for anyone who is interested in a fix... for me rebooting my PC worked.
I am receiving the below warnings/errors. I have a script that has a require() at the beginning of it. I was using the same script with PHP 5.3.3 and it runs fine, but with PHP 5.4.30 and PHP 5.5.14 I am receiving the the below messages. I have checked what have been changed/deprecated/removed before moving the code. I think I have missed some information somewhere. Your help is highly appreciated. This setup is in a Windows 2008 server
Note: In the error message below for some reason the \epo becomes ←epo
Thanks,
Warning: require(c:←po\php\util\alpha.php): failed to open stream: Invalid argument in C:\epo\php\PO\createInfo.php on line 3
Fatal error: require(): Failed opening required 'c:←epo\php\util\alpha.php' (include_path='.;C:\php-5.5.14\pear') in C:\epo\php\PO\createInfo.php on line 3
The answer to this is that you avoid using "\e" in you paths or strings. Since PHP 5.4 more specifically (php-5.4.4) \e, which is code for ESC was implemented and that is what was causing my code to fail. Theoretically, in Widowns it is always better to use \ instead of just a single \ in paths since backslash is known to be used as an escape character. Another was to do it is to use "/" forward slash and you will buy yourself a piece of mind.
For those who are curious The bug was fixed in PHP 5.4.4 [bug #61827]
Cheers,
I just updated Drupal core from 7.4 to 7.26. After running update.php site stopped working – both public and admin part. When I load it fatal error occurs:
Fatal error: Call to undefined function _system_default_theme_features() in /[drupal_path]/includes/theme.inc on line 1422
and when I reload it another fatal error apperars:
Fatal error: Call to a member function getDirectoryPath() on a non-object in /[drupal_path]/modules/image/image.module on line 83
next reload – first error, one more – second. Also, second error is loading much faster.
And one more thing, after applaying update.php I got one failed, I don't know if this is connected:
media_gallery module
Update #7009
Failed: FieldException: Próba aktualizacji egzemplarza nieistniejącego pola media_gallery_media. w field_update_instance() (linia 557 z /[drupal_path]/modules/field/field.crud.inc).
which is something like:
Failed: FieldException: Attempt to update an instance of a nonexistent field media_gallery_media. in field_update_instance() (line 557 in /[drupal_path]/modules/field/field.crud.inc).
PHP Version 5.5.6
Any tips where the problem is? I was trying disabling some modules from db, but this did't help.
It's difficult to explain the reason and to provide a solution.
My attempt would be to copy the DB and the files on a neutral platform (local machine or so) and experiment with the update.php script.
My suspicion would be that media module needs also update since it's using the old URI function definition (call). Also try to update other modules that are working with files.
The update is quite big since 7.4 to 7.22 (years of improvement). Reading the change log would be helpful but not realistic.
Did you also cleared the cache? (via drush if the web interface not working - /?q=admin/config/development/performance)
Please don't forget to post the solution if you find one for other users with the same issue.