i've installed PHPMailer over composer on hostinger.com (webhost). The original version of PHPMailer was 5.0 so I upgraded to 6.6 after i came across this error when submitting a ContactForm7 WordPress plugin form.
Fatal error: Uncaught Error: Class 'PHPMailer\PHPMailer\SMTP' not found in /home/uxxxxxxxx/domains/rebelcitytour.com/public_html/staging25/wp-includes/PHPMailer/PHPMailer.php:1953
I've upgraded to version 6.6 of PHPMailer, I've checked the PHPMailer folder. It exists. And has three files in it...
Exception.php PHPMailer.php SMTP.php
Yet, the plugin PHP code can't seem to find SMTP class? Weird right?
I've included this code in load.php of my plugin root director...
require_once '/staging25/wp-includes/PHPMailer/SMTP.php';
Link to bug on system
Yes, like suggested above. It was a namespace issue caused by a dev declaring a global variable in local scope.
Related
I have a project written in Angular 4 and I am trying to build it, but I keep getting this error: Mixins may not be defined within control directives or other mixins.
I've looked around on the internet and I saw some recommendations to downgrade node-sass to the version 4.8.1, but when I tried to do this, I got a 404 erro from Github:
> node-sass#4.8.1 install c:\my-project\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.8.1/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.8.1/win32-x64-64_binding.node":
HTTP error 404 Not Found
And sure enough, this address: https://github.com/sass/node-sass/releases/download/v4.8.1/win32-x64-64_binding.node doesn't exists. My guess is because there are new versions of node-sass available and the 4.8.1 was pushed back to the second page: https://github.com/sass/node-sass/releases?after=3.5.3.
I know that I am using a very old version of Angular and I have plans to upgrade it, but I don't have the time to do this now, has someone managed to solve this?
Download win32-x64-64_binding.node, put in the local:
C:\Users\{username}\AppData\Roaming\npm-cache\node-sass\4.8.1\
Then install again.
I have used php library for stripe payment, When I call the charge page it gives 500 internal server error by this namespace errors and also the require init.php giving error.
My server PHP Version 5.2.17
SO Please suggest me how to solve this problem..
i.stack.imgur.com/c05Hr.png
The latest release of Stripe's PHP bindings (2.*) require you to have PHP 5.3.3 or later on your server as explained here. Since you're on PHP 5.2.17 you'd need to either:
Use the legacy version of the bindings (1.18.0)
Upgrade the version of PHP on your server to at least 5.3.3
Orchard 1.8. While I can package the default theme successfully (TheThemeMachine) Using the command line instructions from here E.g
orchard> package create TheThemeMachine C:\Temp
packaging my own themes I get the following error
"Cannot create a package that has no dependencies nor content."
(the theme indeed has content)
Anybody have the same issue ? Rookie error I'm guessing..But help much appreciated as error appears undocumented.
This error happens when you have set wrong version for the module/theme. For NuGet it's important to have correct versioning. Make sure you have version in your Theme.txt following formats {x.x}, {x.x.x}, {x.x.x.x} (where x are only digits, each up to 10)
Valid:
1.0
0.0.0.1
01.4423.455.112312
1234567890.1234567890.1234567890.1234567890
Invalid:
1
.1
1.1.1.1.1
1.12345678901
My JBoss Application server is throwing a Module not found exception when starting it.I unzipped Jboss and started it. Could you please tell if i have to make any configuration setting to make it start.
org.jboss.modules.ModuleNotFoundException: org.jboss.as.standalone:main
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:224)
at org.jboss.modules.Main.main(Main.java:341)
Press any key to continue . . .
Thanks,
-Vijay
A possible reason is your jboss runtime is corrupt. Reason for
**org.jboss.modules.ModuleNotFoundException: org.jboss.as.standalone:main
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:224)
at org.jboss.modules.Main.main(Main.java:341)**
is that jboss-eap-6.2\modules\system\layers\base\org\jboss\as\server\main package is missing inside your jboss directory. This package contains jboss-as-server-7.3.0.Final-redhat-14.jar and module.xml which are essential to run jboss server.
I managed to finally solve it with some help from someone from the Jboss community.
You can see the answer here: https://community.jboss.org/message/737218#737218
Basically I turned on TRACE logging on the modules and saw that I'm actually missing javax.jms.Destination, so I just added dependency to that module.
I am trying to use drush to update my drupal core but in some cases (not all) I get
PHP Fatal error: Cannot redeclare system_help() (previously declared in /mysite/modules/system/system.module:46) in /mysite/sites/all/modules/drupal-6.22/modules/system/system.module on line 105
Drush command terminated abnormally due to an unrecoverable error.
Any idea on how to solve this?
Regards.
I had a similar issue, checked and there was inside the core module folder another module folder like:
www/module
www/module/module
Fixed the issue by reinstalling from scratch that drupal build and also upgraded my version of drush.
I had this same problem and it turns out I (as the system admin) had installed drush globally. The developer had installed it as a system module inside of sites/all/modules.
I removed the sites/all/modules/drush for the site and then was able to drush up as normal.