enchant_broker_init() performance issue - apache

I have a web site which uses enchant enchant_broker_init().
I`m not sure why but enchant_broker_init() takes something like 19~ seconds to load the page.
Once I remove this function page loads right away.
anyone has an idea why this is? or how can I debug it?
Thanks

Steps to install php enchant plugin.
APACHE
http://apache.mivzakim.net//httpd/binaries/win32/#warnings
PHP
http://windows.php.net/download/
ENABLE PHP ON APACHE
http://php.net/manual/en/install.windows.apache2.php
Enchant will not work using WAMP. ( at least for it hasn't... ).
Afterwards add the following path
share\myspell\dicts
to your PHP directory.
should look like that.
C:\PHP\share\myspell\dicts
Put the dictionary files there.
.aff
.dic

Related

Apache can't find folder, although it exists

When running server in development everything works fine.
Once I run the same code in Apache server it gives an error
NotFoundError at
/Tensorflow/workspace/models/my_ssd_mobnet/pipeline.config; No such file or directory.
The exact point at which error emerges, seems to be here:
configs = config_util.get_configs_from_pipeline_file(files['PIPELINE_CONFIG'])
I gave all possible permissions I could only give.
I am using django restframework as backend. But I don't think that's where the problem is.
If anyone have any ideas how to resolve this. I would be super grateful!
Ok so, I figured it out. The problem was that apache needs to have an absolute path. So, if you are building your django project in development put absolute path everywhere.
In my case it looks something like this
configs = config_util.get_configs_from_pipeline_file('/var/www/html/BackendUser/'+files['PIPELINE_CONFIG'])

Vagrant, CSS not updated

So I'm using Vagrant and shared folders and when I update the .css file I dont get changes on the website. Instead I get encoded characters like question marks ��.
I searched through the web and found a solution, but that solution doesnt work for me.
The solution was to add "EnableSendfile off" in apache2.conf file. I'm using debian btw. I added this, restarted apache, reloaded vagrant and still nothing got solved.
I created this topic because I cant comment on the existing ones because I still dont have 50 reputation. Please dont hate me for that.
Can you tell me why it doesnt work for me? What else can I do to fix this. It stupid to continue reloading vagrant for few css chagnes.
Best Regards
I've found that refreshing in Chrome by using Ctr F5 will also load the CSS file.
I have same issue.
Remove comment for this line in file /etc/httpd/conf/httpd.conf in Vagrant:
EnableSendfile off
Check this for more details (same issue): https://stackoverflow.com/a/37403744/4728084

typo3 update 4.7 -> 6.2 - broken backend

I've performed an update from typo3 4.7.20 to 6.2.15. The process worked fine and there were no critical errors while running the install tool.
The frontend looks fine but the backend is broken:
I've removed all uncompatible extensions before I run the update. I've also checked all settings in the installationtool und deleted the temp/cache folder first.
I've got the feeling that the error is caused by the TemplaVoila! extension, I'm using v. 1.9.8. Firebug does not shows any error.
Does anyone had a similar problem and have already solved it?
Thank you very much!
I have come across this one multiple times. More often it is because there is a broken TBE_STYLES. I suggest you look around for $TBE_STYLES in your typo3conf folder and disable it for the time being. Most likely it will be in the extTables.php or some other file which is included dynamically.
seems BE is working, but you css does not got loaded.
check your 'web inspecter' to see if you get errors on loading CSS.
clear your cache (remove everything in typo3temp) and try again

zend framework project shows blank page without any errors

i created a simple project with zf and it works fine, but when i copy it to other pc
it just show a blank page without any page or errors ?
my zf version is 1.9 and in other pc zf version 1.9 too
what do you do about this problem?
Do you have error reporting enabled on your machine?
Make sure, that you have these lines in your php.ini file:
error_reporting = E_ALL
display_errors = on
It will help you to find the problem by showing the error.
If it doesn't help, try to put this code in your index.php in public directory
ini_set('display_errors', 1);
Also make sure, that DocumentRoot points to your Zend project public folder.
Are the memory limits the same on both servers? I have seen similar results using php (with zend, albeit). When I run out of memory, just a blank white screen is the result.
This error is caused because your server is running version 4 of PHP, change to version 5 and it will work.

How to get rid of b9g.ru iframe injected on to a website

I have done a website whose URL is http://www.netbramha.com
Unfortunately after the end of each page, I have the following piece getting added
<iframe src="" width=186 height=182 style="visibility: hidden"></iframe>
The src is from b9g.ru.
I have gone through all the required files and none of them have these and there in no entry of this in the database as well.
Is there any solution for this?
It's a virus, perhaps from a wordpress plugin you installed. Check your computer for a virus.
Update:
Try to ask your hosting provider for help. It might be their problem. Otherwise, try to grep for b9g in sources, something like "grep -r -i b9g ./", although it's probably encripted.
If its wordpress, try having a look in the comments, and try disabling all of your plugins, and check the content they add one by one to see what its doing. Other things you can check after that is to try switching the template to one freshly downloaded from the WP site.