Magento2 - Setup Compile Error - Class Not_Existing_Class does not exist - magento

I installed magento 2 Community version successfully. Now when i try to upgrade the setup i get the error Please re-run Magento compile command.
So i ran the compile command
magento setup:di:compile
but i am getting this error
Area configuration aggregation... 5/7 [====================>-------] 71% 35 min
s 736.2 MiB
[ReflectionException]
Class Not_Existing_Class does not exist
[ReflectionException]
Class Not_Existing_Class does not exist
Any ideas as to how this can be resolved ?!
Thanks in advance.

As a temporary fix, i was able to resolve this problem by commenting following line:
\Not_Existing_Class $notExistingClass
in << Magento2 Root Folder >>\vendor\magento\framework\Code\Test\Unit\Generator\TestAsset\TestGenerationClass.php
I have also reported the issue on GitHub here and awaiting the community's response: https://github.com/magento/magento2/issues/2404

Related

Xdebug Failed loading C:\php\ext\php_xdebug.dll

Issue:
I am getting this error in my Apache log on start up:
Failed loading C:\php\ext\php_xdebug-2.9.2-7.4-vc15-x86_64.dll
Xdebug Wizard:
I used the xdebug wizard, which resulted in these instructions:
Download php_xdebug-2.9.2-7.4-vc15-x86_64.dll
Move the downloaded file to C:\php\ext
Edit C:\php\php.ini C:\WINDOWS\php.ini and add the line
zend_extension = C:\php\ext\php_xdebug-2.9.2-7.4-vc15-x86_64.dll
Restart the webserver
Things I have tried:
Using these variations in php.ini:
zend_extension="C:\php\ext\php_xdebug-2.9.2-7.4-vc15-x86_64.dll"
zend_extension=php_xdebug-2.9.2-7.4-vc15-x86_64.dll
I ensured I was editing correct php.ini file
I checked permissions on dll.
I am using:
Apache/2.4.41 (Win64) VC 15
php-7.4.3-Win32-vc15-x64
php_xdebug-2.9.2-7.4-vc15-x86_64.dll
You're using a release candidate of PHP 7.4.1 (php-7.4.1RC1-Win32-vc15-x64) - you might want to use the latest PHP 7.4.3.
You sometimes get a better error message if you try using PHP's command line.

Magento 1.7.0.2 mail failure

I am currently getting the following error on my magento logs:
PHP Fatal error: Call to a member function isPathAllowed() on a non-object in /srv/erg.com/www/app/code/core/Mage/Core/Model/Email/Template/Filter.php on line 476
Any ideas?
I can see the similar issue with possible solution here
Please check if this solves your issue.

Error while hosting CodeIgniter Framework to online server

I need to solve the below issue:
When I tried to hosting codeIgniter framework to my online server, this error occurred.
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/lviscomp/public_html/system/core/Output.php:528)
Filename: core/Common.php
Line Number: 573
Backtrace:
A PHP Error was encountered
Severity: Error
Message: XCache: Cannot init
Filename: Unknown
Line Number: 0
Backtrace:
I had the same xcache issue in my Laravel application. I resolved it by upgrading the PHP version.
I think this might help you as well.
Go to your cPanel
Go to software section and click "select PHP version"
Change your PHP version from "native" to 5.4 or 5.5 (It will give you a list of drivers with checkboxes)
Select Xcache and enable it
Save your settings as well as PHP version
I hope it will work.
For Above Error header information already sent...
Click here!
XCache: Cannot init
Try Disable XCACHE from the Php configuration..
if this doesn't work ..
I think this is a question for your host.

Magento 1.11 Fatal Error: Class 'Namespace_Module_Helper_Data' not found in Mage.php

I have created a module, it is throwing fatal error on admin
Fatal Error: Class 'Namespace_Module_Helper_Data' not found in Mage.php
However, this helper class exists in module. This module works fine with Magento 1.10.
I am not able to figure out the problem. Any guesses??
Please check if compilation is enabled from admin > system > Tools > compilation. If you have added extension without disabling the compilation it may cause this problem.
Clear cache & rerun the compilation process again. Hope this may solve your problem.

Mageno : PHP Fatal error: Class 'Mage' not found in MAGENTODIR/shell/abstract.php on line 79

I normally do the reindexing of "catalog_url" by entering into "shell" directory through SSH & using "indexer.php" But suddenly yesterday I tried to implement the process but getting error. Simply the following command
php -f indexer.php info
is showing the error:
PHP Fatal error: Class 'Mage' not found in MAGENTODIR/shell/abstract.php on line 79
I have changed the "Use flat catalog category" & "Use flat catalog product" to "No" and disabled the "Mage_Log" module output before trying yesterday's reindexing, as far as I can remember. Its Magento 1.7
Any idea or help would be appreciated. Thank You
Found the solution. It was actually occurred because of APC. For testing, I disabled the APC by editing the ini here:
/etc/php5/apache2/conf.d/apc.ini
by doing ";"
;extension=apc.so
Then tried the indexer from inside the magento shell
php -f indexer.php info
and everything worked properly.

Resources