Failed opening required on localhost after switching to mac - php

So long story short, I finally made the switch from Windows to Mac. I installed XAMPP on my new computer and have everything working. Now I am transferring local WP installs from my old computer and found this error...
Fatal error: require_once(): Failed opening required
'/Applications/XAMPP/xamppfiles/htdocs/mysite/wp-content/plugins/essential-grid//admin/includes/update.class.php'
(include_path='.:/Applications/XAMPP/xamppfiles/lib/php') in
/Applications/XAMPP/xamppfiles/htdocs/mysite/wp-content/plugins/essential-grid/essential-grid.php
on line 133
2 things. First, this isn't a problem with the plugin files themselves because they work fine on the local and live sites. Second, I highlighted where I think the error is here "essential-grid//admin", but I'm not really sure what is causing it. Is there something I need to change in my new XAMPP config?
I'm guessing it's probably a simple configuration that I'm missing. Thanks in advance.

Turns out the files got corrupted during the file transfer so this wasn't a problem with XAMPP. Everything worked out.

Related

PhpRunner: Getting error in - classes/controls/ViewFileField.php on line 60... How to solve it?

We are using an admin panel which is create using PhpRUnner 10.3 (by a developer on Fiverr), and it was working just great on our old VPS which has Php 5.6. But just yesterday we switched to a new hosting company called GoDaddy. On GoDaddy the Php version was 7.4 I changed it to 5.6 but still the error occures.
After uploading the admin panel to GoDaddy we are getting error as follows:
Fatal error: require_once(): Failed opening required
'/home/g6oss6ljbwlx/public_html/admin/classes/uploadhandler.php'
(include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php')
in
/home/g6oss6ljbwlx/public_html/admin/classes/controls/ViewFileField.php
on line 60
The developer is not answering our query any more as he had completed out project 6 months back.
Can this problem be solved?
If yes please help.
I have found the solution.
The file (uploadhandler.php) being referred to in ViewFileField.php has case difference. I copied the file UploadHandler.php and renamed it to uploadhandler.php and now the admin panel has started working!!
I am still puzzled as to why it was working properly in our old server and giving errors in GoDaddy server.
Will check into that when I get time.

Symfony 3.3 Built-In server issue (PHP 7.1.9)

I'm just beginning with Symfony 3 but I'm stuck with a built-in server issue.
I am using wamp64 v3.0.6 with PHP 7.1.9 (and PHPStorm as IDE) on Windows 7.
I ran the built-in server once and got a response from localhost:8000 correctly but then, just like [this issue][1], I get the following error message when I try to access localhost:8000 on subsequent tries :
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required'C:\wamp64\www\projectname\vendor\symfony\symfony\src\Symfony\Bundle\WebServerBundle/Resources/router.php' (include_path='.;C:\php\pear') in Unknown on line 0
I've tried uninstalling symfony, wamp64 and PHPstorm to try to identify the problem.
After reinstalling wamp (without running the server) and symfony I've noticed the following :
When I run the built-in server for the first time and immediately access localhost:8000, it works fine. But then the server stops without my pressing CTRL-C. When I restart the server and try to access localhost:8000 I now get said error message.
I've tried creating a another project using PHP 7.0.23 with the same results : once the server crashes, I can no longer load my project.
I'm hoping someone can provide an answer as regarding this issue. I've spent the past few hours searching the web for an answer and have found none.
Thanks in advance.
Credit goes to Baig for this answer :
The source of the issue lies with the antivirus. To solve this, I've excluded the wamp directory (where symfony and my projects are also stored) from my antivirus and, voila, no more server crashes, everything works fine.

Apache in MAMP Pro 4 has stopped working, refuses to start

Have been using MAMP Pro for a fair while - version 3 primarily, upgraded to 4 a while ago.
I haven't had any unusual issues at all, but today the Apache service failed to start, telling me to check the error logs. The logs were blank unfortunately... I've made no system configuration changes, no changes to MAMP/MAMP Pro. Shut down my system yesterday, started today, it no longer works...
I've tried numerous suggestions found via Stack Overflow and Google without any success.
Even after completely uninstalling and re-installing MAMP Pro I am unable to get the service to start.
Nothing appears in the logs...
When starting it manually on the command line it comes up with a PHP related error:
$ Applications/MAMP/bin/apache2/bin/apachectl start
httpd: Syntax error on line 135 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php5.2.17/modules/libphp5.so into server: dlopen(/Applications/MAMP/bin/php/php5.2.17/modules/libphp5.so, 10): image not found
The confusing thing is that I don't have PHP 5.2.17 specified anywhere, at all - according to MAMP Pro it should be using PHP 7.0.12.
If I add PHP 5.2.17 to MAMP using the appropriate MAMP Pro dialogs, Apache still fails to start via the MAMP Pro interface. I can now start it manually from the command line however, but none of my virtual hosts/etc seem to be loaded.
apachectl -V tells me it's using /Applications/MAMP/conf/apache/httpd.conf, but there is nothing in that file that has any reference to any of the configs generated in /Library/Application Support/appsolute/MAMP PRO/conf
It also looks like hosts entries aren't added to /etc/hosts.
Even if I tell /Applications/MAMP/conf/apache/httpd.conf to do nothing but include /Library/Application Support/appsolute/MAMP PRO/conf/httpd.conf (and manually add entries to /etc/hosts) it still doesn't seem to work at all...
I and my colleagues are at a complete loss, especially given it was working yesterday...
Has anyone had any issues like this?
I managed to fix the similar issue you had.
My Apache server was working fine and then following updating to 4.0.6 I experienced similar issues.
There were 2 things I did to fix the issue. I was getting the same error where it couldn't find a php file in 5.2.17. After fixing that by adding 5.2.17 to MAMP I experienced an apache error regarding user permissions.
(22)Invalid argument: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
File > Edit Template > Revert ALL Templates to Default Settings.
Save & restarted the servers and all worked finally and all my hosts had retained as well.
I had previously entered a custom line in my httpd.conf file that for countless versions had copied across fine however it looks like the folder structure had changed and so couldn't locate it causing the unusual error about User permissions. I have since re-entered the custom line with the correct structure and all working fine again.
Hope this helps.

cannot run phpMyAdmin on Windows 10 - session.save_path issue?

I have installed mysql, php5 and apache on windows 10 and I downloaded phpMyAdmin but when I try to open it from localhost/phpmyadmin I get the error message:
Fatal error: Call to undefined function __() in C:\apache24\htdocs\phpmyadmin\libraries\sanitizing.lib.php on line 135
which I don't understand.
In one of other threads I found an information this may be caused by session.save_path being wrongly configured and when I open phpinfo() in the row with this variable there is no value in neither of the columns.
Apache is up and running and php is working and so is mysql. What could be the issue?
Thanks in advance for suggestions.
If you don't get your problem solved, you could try using this program for hosting your website on your localhost. I'm using it all day long and haven't got any problems with that, yet.
https://www.apachefriends.org/de/index.html

YII framework: CHTML.php not including

My site was working all fine on localhost but since when i have uploaded. It is showing an error
include(CHTML.php) [<a href='function.include'>function.include</a>]:
failed to open stream: No such file or directory
I am searching it since long and did many things for it..
Like importing 'system.web.helpers.*' in main.php,Still its not working.
Please somebody help and do help in detail, am new to YII.
Thanks in advance.
Is your local machine Windows and your remote server a *nix box? In that case, check your capitalization. CHTML.php suggests that you have case-mismatches, try using CHtml in your code instead.
Dev in Windows, deploy into Unix: Case sensitive issue.

Categories